I'm using Apache2 to perform Reverse Proxy for my tomcat.
my domain name is https://dev.domain.com to be redirected to http://127.0.0.1:8080/MyApp
proxy is ok but tomcat is having an asset folder located in the root folder (http://127.0.0.1:8080/assets)
while loading my dev.domain.com page I have a 404 Error for every assets elements to be displayed. Here is my VirtualHost configuration:
<VirtualHost *:443>
ServerAdmin webmaster@localhost
proxyRequests Off
SSLProxyEngine on
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ServerName dev.domain.com
ProxyPass / http://127.0.0.1:8080/MyApp/
ProxyPassReverse / http://127.0.0.1:8080/MyApp/
SSLCertificateFile ....
</VirtualHost>
it seems that everything which is not in the MyApp folder is not correctly redirected, do you know I can do that ?