Running a Python CGI script inside of Tomcat is probably not going to work like that. The script is designed for people using Apache HTTPD to host their sites, not Tomcat. You'll need to do something different.
–
Christopher SchmidtOct 13 '10 at 14:18

4 Answers
4

GeoServer doesn't provide a CGI folder so you either need to put the proxy script in you main server's CGI folder (if you are using Apache to serve GeoServer to the web) or go with the GeoServer proxy plugin http://geoserver.org/display/GEOS/GeoServer+Proxy+Extension that provides the same functionality with in the GeoServer environment.

Thanks for the help. Do I have to add a MIME type for WFS in the GeoServer proxy extension or will the ones already set up cover me?
–
James SOct 13 '10 at 15:49

I've never actually used it but I imagine it will work for WFS out of the box.
–
iant♦Oct 13 '10 at 18:48

My webserver and geoserver are on 10.0.0.155:8080. My PostGIS install is on on the same machine, using port 5432. What host do I need to add in the geoserver proxy extension to make this work? And do I have to add the OpenLayers.Proxy line in my web page?
–
James SOct 14 '10 at 10:50

1

I don't think you need a proxy in that case. You would need a proxy if you were serving your web page from a different machine than the one that has GeoServer on it. (PostGIS is irrelevant).
–
iant♦Oct 14 '10 at 14:00

I had also same problem.I had geoserver on port 8080 ,glassfish on port 9999.My OS is Windows 7.WHere should i put the "proxy.cgi" file ??Since there is no cgi-bin folder..
–
Nahom_PainNov 2 '11 at 14:43

It's an alternative answer for your question: "How can I get this to work". That's how I eventually did it, even after writing my own proxy script, I find this way to suit my goals better, not having to worry about crossdomain restrictions in openlayers.

Needless to say: you need access to all webservers serving layer data.