I'm trying to get virtual hosts working with apache2. I had it working once (thanks to viewing other posts in this forum) and I don't think I changed my httpd.conf file but it's not working anymore. Can you all check out this part of my /usr/loca;/apache2/conf/httpd.conf file and let me know if you see any errors? (in this example two domains are replaced by foo.com and foo2.com) Many thanks!
# Use name-based virtual hosting.
#
# NameVirtualHost *
NameVirtualHost *
#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
# ServerAdmin
webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
<VirtualHost *>
#ServerAdmin
webmaster@foo.com
#ServerPath /foo/
ServerName
www.foo.com:80
ServerAlias foo.com store.foo.com
DocumentRoot /usr/local/jakarta-tomcat-3.3.1/webapps/foo
#JkMount /*.jsp ajp13
ErrorLog logs/foo.com-error_log
# CustomLog logs/foo.com-access_log common
</VirtualHost>
<VirtualHost *>
#ServerAdmin
webmaster@foo2.com
#ServerPath /foo2/
ServerName
www.foo2.com
ServerAlias store.foo2.com foo2.com
DocumentRoot /usr/local/jakarta-tomcat-3.3.1/webapps/foo2
ErrorLog logs/foo2.com-error_log
#CustomLog logs/foo2.com_log common
</VirtualHost>
Include /usr/local/jakarta-tomcat-3.3.1/conf/auto/mod_jk.conf