SO I am hosting a couple sites on the same server. The first url point to the right folder but the second and the third for that matter, I get the intial Apache test pages. Can anyone tell why that is happening. I do have NameVirtualHost *:80
in my config file. I also have followed the Apache documentation.
#</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/Dev
ServerName www.scsdeveloper.com
# Other directives here
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/Pro/zenchi
ServerName www.zenchi.com
# Other directives here
</VirtualHost>
<VirtualHost *:80>
DocumentRoot /var/www/Pro/zenchi
ServerName www.zenchipillow.com
# Other directives here
</VirtualHost>
When I try those sites I get the Wordpress setup page. Could it be as simple as your web browser having previous responses cached?
When I want to verify for certain what a web server does, I use telnet - like this:
As you see, what I get is a redirect to the Wordpress install page, not the default Apache "server is working" page.
Have a look here: http://alexking.org/blog/2007/11/01/apache-2-only-serves-first-virtual-host
Simply add the following at the top of your file: NameVirtualHost *:80
It worked for me !