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

前端 未结 2 1004
广开言路
广开言路 2021-01-30 19:18

I configured apache server as a reverse proxy and it works fine if I point a backend server as HTTP. That is:

I configured virtual host 443 like:

ProxyPa         


        
相关标签:
2条回答
  • 2021-01-30 19:54

    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.

    0 讨论(0)
  • 2021-01-30 19:59

    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.

    0 讨论(0)
提交回复
热议问题