Hi everybody, I've been in a dilemma for several days and now I'd really appreciate your help. Here is my situation: - Ubuntu Linux (All ports opened) - Apache running on port 8081 - Geoserver Tomcat on port 8080 I'm trying to make a WFS connection by a different pc than the server so I need to use a proxy. In my server I edited httpd.conf and added these lines:
/ProxyRequests Off ProxyPreserveHost On <Proxy *> Order deny,allow Allow from all </Proxy> ProxyPass /geoserver http://mydomain.com:8080/geoserver ProxyPassReverse /geoserver http://mydomain.com:8080/geoserver/ I downloaded proxy.cgi from OpenLayers and edited to add my allowed hosts (localhost:8081, localhost, mydomain:8081, etc.) When I open proxy.cgi in the web browser I'm forwarded to the openlayers site, so I think that python and the script are running correctly. Then I added http://mydomain.com:8081/geoserver to the base proxy URL in geoserver dashboard. In my html I point every script file like Openlayers.js, GeoExt,js to apache so with port 8081. Inside my init function I put: /OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";/ and the vector layer with WFS is like this: /var inc2007 = new OpenLayers.Layer.Vector("Inc", { styleMap: styles1, strategies: [new OpenLayers.Strategy.BBOX()], protocol: new OpenLayers.Protocol.WFS({ url: "http://mydomain.com:8081/geoserver/wfs", featurePrexif: "Inc", featureType: "Inc", featureNS: "http://mydomain.com:8080/Incendi" }), });/ I can't see this layer on the map and firebug doesn't log anything. I tried to change the ProxyHost link to "http://mydomain.com:8081/cgi-bin/proxy.cgi?url=" but nothing. I tried to use rest instead so that the proxyhost link is "http://mydomain.com:8081/geoserver/rest/proxy?url=" and allowing anonymous authentication in rest.properties but nothing. If I change the url on WFS call putting "/geoserver/wfs" I get a BAD_URI on firebug... What can I do? I really...really need your help. Thanks in advance for your replies -- View this message in context: http://osgeo-org.1560.n6.nabble.com/Proxying-Apache-with-8081-port-to-Geoserver-8080-for-WFS-tp4471406p4471406.html Sent from the GeoServer - User mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ Geoserver-users mailing list Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users