{"id":4393,"date":"2019-05-01T21:41:43","date_gmt":"2019-05-01T16:11:43","guid":{"rendered":"https:\/\/blog.pheonixsolutions.com\/?p=4393"},"modified":"2019-05-01T22:07:20","modified_gmt":"2019-05-01T16:37:20","slug":"configure-varnish-with-apache-on-centos-7","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/","title":{"rendered":"Configure Varnish With Apache On CentOS 7"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Configure Varnish With Apache On CentOS 7<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Date published: 01\/05\/2019<\/h4>\n\n\n\n<h4 class=\"wp-block-heading\">Introduction<\/h4>\n\n\n\n<p>Varnish Cache is a web application accelerator also known as a<strong> caching HTTP reverse proxy<\/strong>.  Most certainly, you will install it in front of any server that speaks HTTP and configure it to cache the contents. <br><br>Varnish Cache is really, very fast and handles request at high speed. It typically speeds up delivery with a factor of 300 &#8211; 1000x, depending on your architecture.<\/p>\n\n\n\n<ul class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"668\" height=\"322\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-01-at-5.51.52-PM.png\" alt=\"\" data-id=\"4394\" data-link=\"https:\/\/blog.pheonixsolutions.com\/?attachment_id=4394\" class=\"wp-image-4394\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-01-at-5.51.52-PM.png 668w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-01-at-5.51.52-PM-300x145.png 300w\" sizes=\"auto, (max-width: 668px) 100vw, 668px\" \/><figcaption>Varnish Cache webserver as Frontend and Apache webserver as backend<\/figcaption><\/figure><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">prerequisite<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>However, we need server running CentOS 7 with Apache installed with any version.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Procedure for installation of Varnish<\/h3>\n\n\n\n<p>Before installing Varnish in your server, you will have to install the EPEL repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo yum install -y epel-release<\/code><\/pre>\n\n\n\n<p>For instance, install varnish in server<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> yum install -y varnish<\/code><\/pre>\n\n\n\n<p>After installation, you will need to start Varnish and enable it to start on boot.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl start varnish\nsudo systemctl enable varnish<\/code><\/pre>\n\n\n\n<p>Moreover, check the status of Varnish.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl status varnish<\/code><\/pre>\n\n\n\n<p>Likewise, check the version of Varnish <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo varnishd -V<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-varnish\">Configuration of Varnish setup<\/h3>\n\n\n\n<p>The default varnish configuration file will be located in the <code><strong>\/etc\/varnish<\/strong><\/code><strong>\u00a0<\/strong>directory in CentOS 7. <br><br>To make Varnish work in front of Apache, you will need to set up some basic configurations like given details below.<\/p>\n\n\n\n<p>By default Varnish listens on\u00a0<code><strong>port 6081<\/strong><\/code>. Use network tools such as netstat for confirmation.<br><br> You will need to change port <code>6081<\/code>\u00a0to\u00a0<code>80<\/code>\u00a0<strong>so that website requests access the Varnish cache first<\/strong>.  Similarly, you can do this by editing the <code><strong>varnish.params<\/strong><\/code>\u00a0config file.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/etc\/varnish\/varnish.params\n<\/pre>\n\n\n\n<p>Change <strong>VARNISH_LISTEN_PORT<\/strong>\u00a0from\u00a0<code>6081<\/code>\u00a0to\u00a0<code>80<\/code>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">VARNISH_LISTEN_PORT=80\n<\/pre>\n\n\n\n<p>Save the file, then open the\u00a0<code><strong>default.vcl<\/strong><\/code>\u00a0file. This file tells varnish to look for the server content:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/etc\/varnish\/default.vcl\n<\/pre>\n\n\n\n<p>All the above, update the Varnish to get the content on port <code>8080<\/code>.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">backend default {\n.host = \"127.0.0.1\";\n.port = \"8080\";\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"configure-apache-to-work-with-varnish\">Configure Apache [backend] To Work With Varnish<\/h3>\n\n\n\n<p>By default Apache listens on port\u00a0<code><strong>80<\/strong><\/code>. <br><br>Similarly in the vein, you need to make Apache to run <strong>behind Varnish caching<\/strong> by changing the default Apache port to <code>8080<\/code>.<\/p>\n\n\n\n<p>To do this, edit the\u00a0<code>httpd.conf<\/code> config file of Apache:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/etc\/httpd\/conf\/httpd.conf\n<\/pre>\n\n\n\n<p>Search for\u00a0<code><strong>Listen 80<\/strong><\/code>\u00a0and replace it with\u00a0<code><strong>Listen 8080<\/strong><\/code>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Listen 8080\n<\/pre>\n\n\n\n<p>Save and close the file, restart Apache and Varnish to reflect the changes in port.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apachectl restart\nsudo systemctl restart varnish\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Test the web severs<\/h3>\n\n\n\n<p>Now we have successfully configured  Varnish and Apache running together. <br><br>To verify that Varnish is on and working, you can use the <code><strong>curl<\/strong><\/code><strong>command<\/strong> to view the HTTP header:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">curl -I http:\/\/localhost\n<\/pre>\n\n\n\n<p>You should see the <strong>output<\/strong> something like this:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">HTTP\/1.1 200 OK\nDate: Wed, 01 May 2019 09:49:37 GMT\nServer: Apache\/2.4.6 (CentOS)\nLast-Modified: Fri, 18 Apr 2019 11:39:13 GMT\nETag: \"6c-5211cdbf61c14\"\nContent-Length: 108\nContent-Type: text\/html; charset=UTF-8\nX-Varnish: 32770\nAge: 0\nVia: 1.1 varnish-v4\nConnection: keep-alive<\/pre>\n\n\n\n<p>That&#8217;s it<\/p>\n\n\n\n<p>Thanks for using&nbsp;<a href=\"https:\/\/pheonixsolutions.com\/\">pheonix solutions<\/a>.<\/p>\n\n\n\n<p>You find this tutorial helpful? Share with your friends to keep it alive.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Configure Varnish With Apache On CentOS 7 Date published: 01\/05\/2019 Introduction Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. Most certainly, you will install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">Configure Varnish With Apache On CentOS 7<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[637,284,636],"tags":[635,633,634],"class_list":{"0":"post-4393","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-apache-2","7":"category-centos","8":"category-varnish-cache-server","9":"tag-apache-web-server","10":"tag-centos7","11":"tag-varnish-cache-server","12":"h-entry","14":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"Configure Varnish With Apache On CentOS 7 Date published: 01\/05\/2019 Introduction Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. Most certainly, you will install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is&hellip; Continue Reading Configure Varnish With Apache On CentOS 7\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-01T16:11:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-01T16:37:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-01-at-5.51.52-PM.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"Configure Varnish With Apache On CentOS 7\",\"datePublished\":\"2019-05-01T16:11:43+00:00\",\"dateModified\":\"2019-05-01T16:37:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/\"},\"wordCount\":390,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/Screen-Shot-2019-05-01-at-5.51.52-PM.png\",\"keywords\":[\"apache web server\",\"centos7\",\"varnish cache server\"],\"articleSection\":[\"Apache\",\"Centos\",\"varnish cache server\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/Screen-Shot-2019-05-01-at-5.51.52-PM.png\",\"datePublished\":\"2019-05-01T16:11:43+00:00\",\"dateModified\":\"2019-05-01T16:37:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/Screen-Shot-2019-05-01-at-5.51.52-PM.png\",\"contentUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2019\\\/05\\\/Screen-Shot-2019-05-01-at-5.51.52-PM.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/configure-varnish-with-apache-on-centos-7\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configure Varnish With Apache On CentOS 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"Configure Varnish With Apache On CentOS 7 Date published: 01\/05\/2019 Introduction Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. Most certainly, you will install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is&hellip; Continue Reading Configure Varnish With Apache On CentOS 7","og_url":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2019-05-01T16:11:43+00:00","article_modified_time":"2019-05-01T16:37:20+00:00","og_image":[{"url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-01-at-5.51.52-PM.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"Configure Varnish With Apache On CentOS 7","datePublished":"2019-05-01T16:11:43+00:00","dateModified":"2019-05-01T16:37:20+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/"},"wordCount":390,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-01-at-5.51.52-PM.png","keywords":["apache web server","centos7","varnish cache server"],"articleSection":["Apache","Centos","varnish cache server"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/","url":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-01-at-5.51.52-PM.png","datePublished":"2019-05-01T16:11:43+00:00","dateModified":"2019-05-01T16:37:20+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/#primaryimage","url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-01-at-5.51.52-PM.png","contentUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2019\/05\/Screen-Shot-2019-05-01-at-5.51.52-PM.png"},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/configure-varnish-with-apache-on-centos-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Configure Varnish With Apache On CentOS 7"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-18R","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=4393"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/4393\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=4393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=4393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=4393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}