我将apache服务器配置为反向代理,如果我将后端服务器指向HTTP,则可以正常工作。 那是:
我将虚拟主机443配置为:
ProxyPass /primary/store http://localhost:9763/store/
ProxyPassReverse /primary/store http://localhost:9763/store/
用户在这里将访问服务器,例如https://localhost/primary/store
这样就可以了...但是我想像这样配置HTTP服务器;
ProxyPass /primary/store https://localhost:9443/store/
ProxyPassReverse /primary/store https://localhost:9443/store/
当我配置像apache服务器给500内部服务器错误。 我在这里做错了什么?
我得到的错误是:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
在apache错误日志中指出:
nt: SSLProxyEngine]
[Mon Aug 04 00:03:26 2014] [error] proxy: HTTPS: failed to enable ssl support for [::1]:9443 (localhost)
[Mon Aug 04 00:03:31 2014] [error] [client ::1] SSL Proxy requested for localhost:443 but not enabled [Hint: SSLProxyEngine]
[Mon Aug 04 00:03:31 2014] [error] proxy: HTTPS: failed to enable ssl support for [::1]:9443 (localhost)
[Mon Aug 04 00:03:51 2014] [error] [client ::1] SSL Proxy requested for localhost:443 but not enabled [Hint: SSLProxyEngine]
[Mon Aug 04 00:03:51 2014] [error] proxy: HTTPS: failed to enable ssl support for [::1]:9443 (localhost)
如何配置HTTP服务器与HTTPS服务器对话?
您的服务器会告诉您您到底需要什么: [Hint: SSLProxyEngine]
您需要在Proxy
指令之前将该指令添加到VirtualHost
:
SSLProxyEngine on
ProxyPass /primary/store https://localhost:9763/store/
ProxyPassReverse /primary/store https://localhost:9763/store/
您能不能共享您的配置文件,因为我也遇到同样的问题。
谢谢!!