To check your configuration, Open your host in browser pointing to port 80. Step 5: Restart ServicesĪfter completing configuration restart both service varnish and apache. VARNISH_STORAGE_SIZE: Max amount of RAM used by VarnishĪll other default configuration are fine and there are no need to make changes for initial configuration.VARNISH_LISTEN_PORT: Port on which varnish will listen.Generally this file contains all start-up configuration. We will change the default listening port by varnish in this file. # vim /etc/varnish/default.vclĤ.2 Configure /etc/sysconfig/varnish file We will configure it to find content from service running on local machine on port 82 ( Apache ). This file used to tell varnish where the actual content are. # yum install varnishĤ.1 Configure /etc/varnish/default.vcl file Install Varnish using yum command line tool using following command. Edit Apache configuration file /etc/httpd/conf/nf and change value of Listen from 80 to 82 Listen 82Ĭreate a test file check.html in document root using test content. ![]() # yum install httpdĬonfigure Apache to work on port 82. Use following commands to install Apache on your system. There are latest release available in Atomic repository in RPM format. ![]() This tutorial will help you to setup Varnish on your System. Its used as front-end caching server for web servers. Varnish is an Web accelerator used for content-heavy dynamic web sites.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |