Hey all, I just spent the day trying to understand where I could have gone wrong...
I am trying to add a virtual host to my machine by name to the IP here.
It absolutely refuses to work.
it is a mess server I hope to upgrade soon, but it has 2 versions of apache running together on it.
The first one (php3) just proxies all the requests from 80 to 8080 which has another instance of apache running php5.
so, on APACHE 80's sites.conf, I have:
Code:
<VirtualHost *:80>
ServerName hostheadererror.com
ServerAdmin webmaster@mydomain.com
DocumentRoot /home/me/www/nohostheader
</VirtualHost>
<VirtualHost *:80>
ServerName www.newdomain.com
ServerAlias newdomain.com *.newdomain.com
ServerAdmin webmaster@olddomain.com
# DocumentRoot /home/me/www/newdomain
DocumentRoot /dev/null
ProxyPass / http://localhost:8080/
</VirtualHost>
The sites.conf from the server it proxied to:
Code:
<VirtualHost *:8080>
ServerName www.newdomain.com
ServerAlias newdomain.com *.newdomain.com
ServerAdmin webmaster@olddomain.com
DocumentRoot /home/me/www/newdomain
</VirtualHost>
I don't know what else to do, it keeps defaulting to the host header error virtual host.
Thanks in advance