I’m having trouble with my Apache reverse proxy setup when trying to connect to an HTTPS backend.
My current configuration works perfectly when I point to HTTP backends:
ProxyPass /api/service http://127.0.0.1:8080/service/
ProxyPassReverse /api/service http://127.0.0.1:8080/service/
Users can access this via https://mydomain.com/api/service without any issues.
However, when I try to modify the config to use HTTPS for the backend:
ProxyPass /api/service https://127.0.0.1:8443/service/
ProxyPassReverse /api/service https://127.0.0.1:8443/service/
I get a 500 internal server error. The Apache error logs show:
[error] proxy: HTTPS: failed to enable ssl support for [::1]:8443 (mydomain.com)
[error] [client ::1] SSL Proxy requested for mydomain.com:443 but not enabled [Hint: SSLProxyEngine]
What configuration am I missing to make Apache communicate properly with HTTPS backend servers? The error message mentions SSLProxyEngine but I’m not sure how to implement this correctly.