Please excuse my ignorance on this topic. I've read and read, searched and searched and I'm still struggling with my setup.
I'm trying to setup my httpd.conf to allow one domain, with two directories to resolve to two different tomcat instances.
www.example.com/first
<VirtualHost "ip address":80>
ServerName example/first
ErrorLog /var/log/httpd/first_error.log
CustomLog /var/log/httpd/first_access.log combined
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / ajp://localhost:8009/
</VirtualHost>
www.example.com/second
<VirtualHost "ip address":80>
ServerName example/second
ErrorLog /var/log/httpd/second_error.log
CustomLog /var/log/httpd/second_access.log combined
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
ProxyPass / ajp://localhost:8010/
ProxyPassReverse / ajp://localhost:8010/
</VirtualHost>
I know this is wrong, and I think I'm supposed to use <Directory>
, or should I be specifying the tomcat instance in:
ProxyPass /example1 ajp://localhost:8010/
ProxyPass /example2 ajp://localhost:8009/
Please send help. Supplies/morale are low.
or links to examples... Thank you!!