I am trying to put an old Tomcat behind an Apache HTTPS reverse proxy. I configured the https virtual host to perform the actual proxying and the http virtual host to redirect everything to https:
https snippet:
ProxyRequests Off
ProxyPass /old_app/ http://192.168.1.18:8080/old_app/
ProxyPassReverse /old_app/ http://192.168.1.18:8080/old_app/
http snippet:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
The problem is that the website shows up, but there are no CSS or images. If inspect using Chrome Developer Console I see a lot of errors regarding mixed content, that are blocked because originally referred in http. I searched around and I found some suggestions regarding modifying the proxied website, but in my situation I can not modify the Tomcat webapp. Is there a way to solve this problem? Or the only way is modify old_app source code? Maybe switching to Nginx with some particular configurations?