(Running on Windows XP.)
If I comment out this line in httpd.conf
#Include conf/extra/httpd-vhosts.conf
Apache will start up. If I uncomment it, it will not start. I get this error in the Event Viewer:
The Apache2 service terminated with service-specific error 1 (0x1).
I have another box where I have it working correctly, but I installed everything myself. I just copied the <VirtualHost> settings from the working environment, so they should be fine. Here is my httpd-vhosts.conf file:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName localhost:80
ServerAdmin me@here.com
DocumentRoot "C:/Program Files/xampp/htdocs"
ErrorLog logs/error.log
</VirtualHost>
<VirtualHost *:80>
ServerName www.domain1.com
ServerAdmin me@here.com
DocumentRoot "C:/Program Files/xampp/tomcat/webapps/domain1/ROOT/"
ServerAlias domain1.com
ErrorLog @rel_logfiledir@/domain1.com-error_log
CustomLog @rel_logfiledir@/domain1com-access_log common
ProxyPass / http://localhost:8081/
ProxyPassReverse / http://localhost:8081/
</VirtualHost>
<VirtualHost *:80>
ServerName www.domain2.com
ServerAdmin me@here.com
DocumentRoot "C:/Program Files/xampp/tomcat/webapps/domain2/ROOT/"
ServerAlias domain2.com
ErrorLog @rel_logfiledir@/domain2.com-error_log
CustomLog @rel_logfiledir@/domain2.com-access_log common
ProxyPass / http://localhost:8082/
ProxyPassReverse / http://localhost:8082/
</VirtualHost>
Then I have tomcat's server.xml file configured with those connectors. The tomcat side is working fine because I can hit http://localhost:8081/ and http://localhost:8082/ successfully.
I also uncommented these two lines in httpd.conf:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
That's about all I've changed from the default installation of XAMPP. Any ideas why Apache fails to load?
Thanks,
Brian Barnett