virtual host settings fail on multiple sites
Posted
by
Ricalsin
on Server Fault
See other posts from Server Fault
or by Ricalsin
Published on 2011-01-17T06:14:36Z
Indexed on
2011/01/17
6:54 UTC
Read the original article
Hit count: 210
Wow. I'm puzzled. On my ubuntu system I've setup an apache2 server and configured three virtual hosts in the /etc/apache2/sites-available directory. a2ensite to symbolic link the sites-enabled. The first two work great; a simple url of localhost.mysitenames.com works great for the first two sites, both finding their DocumentRoot and Directory paths. The third always generates a Bad Request (Invalid Hostname) response. No server error.log as it never hits it. I've copied/pasted the working vhost files, made the minor changes to the ServerName, DocumentRoot and Directory and the same problem persists. I always "sudo /etc/init.d/apache2 restart" whenever I make a change. I've cleared the browser cache as well. No love.
There's not a limit to the number of sites you can host, right? My goal was a localhost development environment with the expectation I can run any number of websites locally before pushing them to a live server.
Any thoughts on how to debug this? Or, just a simple solution I am missing?
© Server Fault or respective owner