Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to configure apache server to talk to HTTPS backend server?

People also ask

Can Apache do https?

Apache SSL Configuration. And a final step would be to configure Apache so it can serve the request over HTTPS. We will use httpd-ssl. conf file to configure the certificate details.

What is ProxyPass and ProxyPassReverse in Apache?

The "ProxyPass" and "ProxyPassReverse" parameters are used to tell Apache how to proxy requests. They require the "mod_proxy.so" and "mod_proxy_http.so" Apache modules, which are loaded by default in RHEL5 and RHEL6, but check the following lines are uncommented in the "/etc/httpd/conf/httpd. conf" file to make sure.


Your server tells you exactly what you need : [Hint: SSLProxyEngine]

You need to add that directive to your VirtualHost before the Proxy directives :

SSLProxyEngine on
ProxyPass /primary/store https://localhost:9763/store/
ProxyPassReverse /primary/store https://localhost:9763/store/

See the doc for more detail.


In my case, my server was configured to work only in https mode, and error occured when I try to access http mode. So changing http://my-service to https://my-service helped.