Reputation: 39
I'm running apache 2.2 with multiple VirtualHosts and varnish cache on Centos 6.6. The problem is I can't get this to work.
httpd.conf:
Listen 8080
NameVirtualHost *:8080
<VirtualHost *:8080>
ServerName xxxx.com
ServerAlias www.xxxx.com
Varnish is set to run on 80 port. DAEMON_OPTS="-a :80
default.vcl:
backend default {
.host = "127.0.0.1";
.port = "8080";}
etc/hosts:
127.0.0.1 localhost
2a01:xxx:190:xxx8::2
5.0.100.000
Whenever I try to reach my virtualhost I see var/www/html content. What should I do? Thank you.
Upvotes: 0
Views: 442
Reputation: 39
Problem solved! Seems there was more Listen params in ssl.conf, commented out all except Listen 443, everything seems to be working fine now.
Upvotes: 1
Reputation: 2296
you forgot to set your DocumentRoot on Apache httpd.conf
:
DocumentRoot var/www/html
Stop Apache completely and start it again:
httpd -k stop
httpd -k start
Or restart it:
httpd -k restart
Upvotes: 0