Hello firstly apologies if this is a daft question - I am new to this stuff and very, very stuck. I can't find an existing post that solves my problem.
I am trying to reverse proxy an SSL URL to a Tomcat app. When using http, the config shown below works ok. Under https, it doesn't. What I want to achieve is https --> Apache2.2 - http -> Tomcat6
Its a virtual domain and the only options I seem to have to configure Apache are confined to an include file (below) that is pulled into httpd.conf.
The Directory part was there by default, the content after that was added by me.
<Directory /var/www/vhosts/<domain>/httpdocs/>
php_admin_value open_basedir "/var/www/vhosts/<domain>/httpdocs:/tmp:/:.:../../:../../../:.."
</Directory>
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so
LoadModule headers_module /usr/lib/apache2/modules/mod_headers.so
LoadFile /usr/lib/libxml2.so.2.7.6
LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so
LoadModule proxy_connect_module /usr/lib/apache2/modules/mod_proxy_connect.so
LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
LoadModule proxy_ajp_module /usr/lib/apache2/modules/mod_proxy_ajp.so
SSLProxyEngine on
ProxyPass /app1/ ajp<link removed 127.0.0.1:8009/app1/>
ProxyPass /app2/ ajp<link removed 127.0.0.1:8009/app2/>
ProxyPassReverse /app1 ajp<link removed 127.0.0.1:8009/app1/>
ProxyPassReverse /app2/ ajp<link removed 127.0.0.1:8009/app2/>
Accessing http://mydomain.com/app1/login/do/ etc works fine. https://mydomain.com/app1/login/do/ produces a 404 error. The server logs state that /var/www/vhosts//app1 does not exist.
I can't understand why the config is trying to locate this file, rather than point to the Tomcat app.
This is getting a bit urgent, so any advice would be very welcome.
Cheers George