I went to my DNS host and changed the names to point to the new IP address. But now, when I go to the hostname in my browser I end up at the default site instead of the one specified for the virtual host. Here is my config file (httpd-vhosts.conf).
================================ NameVirtualHost 75.101.136.229 <VirtualHost 75.101.136.229> ServerAdmin jborland77@xxxxxxxxx ServerName ec2-75-101-136-229.compute-1.amazonaws.com DocumentRoot "/var/www" </VirtualHost> <Directory "/home/jim"> Order allow,deny Allow from all </Directory> <VirtualHost 75.101.136.229> ServerName atascaderoband.org ServerAlias www.atascaderoband.org DocumentRoot "/home/jim/atasband" </VirtualHost> <VirtualHost 75.101.136.229> ServerName www.slocountyband.org ServerAlias slocountyband.org DocumentRoot "/home/jim/band" </VirtualHost> ================================When I point my browser to atascaderoband.org or slocountyband.org I end up at: DocumentRoot "/var/www" instead of the ones specified for the two virtual hosts.
What really confuses me is that Apache says the virtual hosts are okay. When I type the command 'apachectl -S' I get this result:
================================ # apachectl -S VirtualHost configuration: 75.101.136.229:* is a NameVirtualHostdefault server ec2-75-101-136-229.compute-1.amazonaws.com (/etc/apache2/sites-enabled/httpd-vhosts.conf:3) port * namevhost ec2-75-101-136-229.compute-1.amazonaws.com (/etc/apache2/sites-enabled/httpd-vhosts.conf:3) port * namevhost atascaderoband.org (/etc/apache2/sites-enabled/httpd-vhosts.conf:22) port * namevhost www.slocountyband.org (/etc/apache2/sites-enabled/httpd-vhosts.conf:31)
wildcard NameVirtualHosts and _default_ servers: *:80 is a NameVirtualHostdefault server domU-12-31-39-04-58-57.compute-1.internal (/etc/apache2/sites-enabled/000-default:1) port 80 namevhost domU-12-31-39-04-58-57.compute-1.internal (/etc/apache2/sites-enabled/000-default:1)
================================ Any thoughts or suggestions would be greatly appreciated. Thank you! --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx