Report this

What is the reason for this report?

While Apache Listing to Port 8080 - Website is Not Working

Posted on March 2, 2015

I have successfully installed varnish cache on Cpanel + Centos 6.5 + Apache. While I changed the Apache port from 80 to 8080, my website stop functioning. However, While I switch back to default Port 80 then Website start responding. Varnish cache is installed and listing to port 80.

I did below mention steps to install varnish.

yum install -y gcc make automake autoconf libtool ncurses-devel libxslt groff pcre-devel pckgconfig libedit libedit-devel

rpm --nosignature -i http://repo.varnish-cache.org/redhat/varnish-3.0/el6/noarch/varnish-release/varnish-release-3.0-1.el6.noarch.rpm

yum install varnish

Please help me on this.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Did you configure varnish to use localhost:8080 as backend?

also remember to restart both services after changing the config files.

Sounds like iptables. What does “iptables -L” return. Probably port 80 is open but port 8080 is not.

My Setting is

 nano -w /etc/sysconfig/varnish

Not setting VARNISH_LISTEN_ADDRESS makes Varnish listen on all IPs on this box

(Both IPv4 and IPv6 if available). Set manually to override this.

VARNISH_LISTEN_ADDRESS=

VARNISH_LISTEN_PORT=80

Telnet admin interface listen address and port

VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1 VARNISH_ADMIN_LISTEN_PORT=6082

nano -w /etc/varnish/default.vcl

backend default { .host = “127.0.0.1”; .port = “8080”; }

I am using apache 2.4 php 5.5 cpanel centos 6.5 64X

What i have to do next

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.