A stupid question!!!
I'm hosting an HTTPS website, all working fine with default port 443 and correct signed certificate.
Assuming the host is responding to https://localhost . From root website, i can do everything inside the DocumentRoot path.
NOW I NEED to reverse proxing a path from / to an external web interface.
https://localhost ok to DocumentRoot
https://localhost/app ok to DocumentRoot/app
https://localhost/APPEXT i want to proxy this path to an external product which serves a web interface on 8080
WHAT I DID, with theese results
IF I COMPLETELY REPLACE the original VirtualHost with
- Code: Select all
<VirtualHost _default_:443>
ServerName APPEXT
SSLEngine on
SSLCertificateFile "${CERTROOT}\my.pem"
SSLCertificateKeyFile "${CERTROOT}\my.key"
ProxyPreserveHost On
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
External WebInteface responds fine without problems.
But this is not what i want to do, neither hosting on a new listening port.
I WANT to make this same proxing inside the original hosted VirtualHost.
But, proxying with a
- Code: Select all
<VirtualHost _default_:443>
DocumentRoot "[myhome]"
ServerName [myname]
SSLEngine on
SSLCertificateFile "${CERTROOT}\my.pem"
SSLCertificateKeyFile "${CERTROOT}\my.key"
ProxyPreserveHost On
ProxyPass /APPEXT http://localhost:8080/
ProxyPassReverse /APPEXT http://localhost:8080/
</VirtualHost>
Make the proxying to redirect, but all the path by "APPEXT" missed the redirect, and are managed by Apache, so i have a 404.
https://localhost/APPEXT reditects to http://localhost:8080/ but all APPEXT path NOT!
So, if i need http://localhost:8080/style.css and i call https://localhost/APPEXT/style.css i get a 404 from Apache to https://localhost/style.css
Is there a method to get a full reverse proxying?
Do i need a create a new VirtualHost? How?
Thanks.