我有一个WSO2 Mashup服务器 。 通常通过https://xxx.xxx.xxx.xxx:9443/carbon访问
出于某种原因,我想设置一个反向代理来访问它,所以它可以访问通过https://xxx.xxx.xxx.xxx/carbon
我遵循http://wiki.apache.org/httpd/TomcatReverseProxy的指导,并在conf.d文件夹中创build了一个conf文件。
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>
我得到错误404,如果我尝试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访问,但我得到错误107,如果我尝试https://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
你代理/carbon/和访问/carbon不是同一件事情。 当访问像/carbon这样的目录资源时,Web服务器实际上会将redirect发送到/carbon/ ,这可能是为什么您希望它像9443服务器那样工作。
尝试访问/carbon/或代理/carbon代替
ProxyPass /carbon https://127.0.0.1:9443/carbon ProxyPassReverse /carbon https://127.0.0.1:9443/carbon