Rat*_*tha 65 apache httpd.conf
我将apache服务器配置为反向代理,如果我将后端服务器指向HTTP,它可以正常工作.那是:
我配置了虚拟主机443,如:
ProxyPass /primary/store http://localhost:9763/store/
ProxyPassReverse /primary/store http://localhost:9763/store/
Run Code Online (Sandbox Code Playgroud)
用户将在这里访问服务器 https://localhost/primary/store
这工作正常......但我想配置HTTP服务器;
ProxyPass /primary/store https://localhost:9443/store/
ProxyPassReverse /primary/store https://localhost:9443/store/
Run Code Online (Sandbox Code Playgroud)
当我配置像apache服务器给出500内部服务器错误.我在这做错了什么?
我得到的错误是:
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, you@example.com 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.
Run Code Online (Sandbox Code Playgroud)
在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)
Run Code Online (Sandbox Code Playgroud)
如何配置http服务器与HTTPS服务器通信?
Céd*_*let 143
您的服务器会告诉您确切的需求: [Hint: SSLProxyEngine]
您需要在指令VirtualHost之前将该Proxy指令添加到您的指令:
SSLProxyEngine on
ProxyPass /primary/store https://localhost:9763/store/
ProxyPassReverse /primary/store https://localhost:9763/store/
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
89381 次 |
| 最近记录: |