我正在尝试设置我的apache(2.2版)作为反向代理。我配置了如下所示的apache:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule headers_module modules/mod_headers.so
LoadFile /usr/lib/libxml2.so
LoadModule proxy_html_module modules/mod_proxy_html.so
<IfModule proxy_module>
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
#ProxyPass /lala http://myServer:8080/webserviceInterceptorSpring/services/wsInterceptorSOAP?wsdl
ProxyPass /lala http://myServer:8080/webserviceInterceptorSpring/services/wsInterceptorSOAP
ProxyPassReverse /lala http://myServer:8080/webserviceInterceptorSpring/services/wsInterceptorSOAP
ProxyHTMLURLMap http://myServer:8080/webserviceInterceptorSpring/services/wsInterceptorSOAP?wsdl /wsdl
ProxyPass /wsdl http://myServer:8080/webserviceInterceptorSpring/services/wsInterceptorSOAP?wsdl
ProxyPassReverse /wsdl http://myServer:8080/webserviceInterceptorSpring/services/wsInterceptorSOAP?wsdl
</IfModule>
当我尝试在浏览器上访问网址时,一切都很好,当我尝试使用SoapUi测试网络服务时会出现问题,例如:
我想去http://myServer/lala to proxy http://myServer:8080/webserviceInterceptorSpring/services/wsInterceptorSOAP
与wsdl相同
我想去
http://myServer/wsdlto proxy http://myServer:8080/webserviceInterceptorSpring/services/wsInterceptorSOAP?wsdl
但是soapult无法从网址http://myServer/wsdl
加载wsdl,从而导致以下错误:
Error loading [http://myServer/wsdl]: java.lang.Exception: Failed to load url; http://myServer/wsdl, 0