Step: https://www.varnish-cache.org/docs/3.0/tutorial/putting_varnish_on_port_80.html
These are my single steps:
1) pkill varnishd (done!)
2) Edit the configuration for your web server and make it bind to port 8080 instead of 80″
What mean this step? I use Apache
3) default.vcl and change the port of the default backend to 8080 (done!)
4) varnishd -f /usr/local/etc/varnish/default.vcl -s malloc,1G -T 127.0.0.1:2000 (done!)
Varnish doesn’t work because i skip the 3th step. What i have to do there? Explain single steps…
PS: What’s a simpler alternative to Varnish?
I assume that both Varnish and Apache is served from the same machine since you need to change ports. The standard www port is 80. You want Varnish to serve that port, and forward requests to Apache that would run on another port (8080).
I don’t configure the ports of Apache often, but I think the following description should work. Edit the httpd.conf file (often found in “/etc/httpd/conf/httpd.conf”) and change the port setting from “Port 80” to “Port 8080”, and restart apache. You may also have to change “Listen 80” to “Listen 8080” if it exists.