我有一个WSO2 Mashup 服务器. 通常通过https://xxx.xxx.xxx.xxx:9443/carbon
出于某种原因,我想设置一个反向代理来访问它,这样它就可以通过https://xxx.xxx.xxx.xxx/carbon
我已遵循http://wiki.apache.org/httpd/TomcatReverseProxy并在文件夹中创建一个conf文件conf.d
。
ProxyRequests Off
ProxyPass /carbon/ https://127.0.0.1:9443/carbon/
ProxyPassReverse /carbon/ https://127.0.0.1:9443/carbon/
<Location "/carbon">
Order allow,deny
Allow from all
</Location>
如果我尝试http://xxx.xxx.xxx.xxx/carbon
Not Found
The requested URL /carbon was not found on this server.
Apache/2.2.22 (Ubuntu) Server at 125.215.250.19 Port 80
无论如何,我只想通过 https 访问,但如果我尝试,就会出现错误 107https://xxx.xxx.xxx.xxx/carbon
SSL connection error
Unable to make a secure connection to the server. This may be a problem with the server, or it may be requiring a client authentication certificate that you don't have.
Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error
答案1
您正在代理/carbon/
和访问,/carbon
但这并不是一回事。当访问目录之类的资源时,/carbon
Web 服务器实际上会发送重定向,/carbon/
这可能是您期望它像 9443 服务器一样工作的原因。
尝试访问/carbon/
或使用/carbon
代理
ProxyPass /carbon https://127.0.0.1:9443/carbon
ProxyPassReverse /carbon https://127.0.0.1:9443/carbon