Hi, okay, here we go:
1.) localhost/cgi-bin/proxy.cgi Browser: *500 Internal Server Error* The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Firebug:Nothing Apache err. log: [Tue Nov 08 09:24:18 2011] [error] [client 127.0.0.1] Premature end of script headers: proxy.cgi [Tue Nov 08 09:24:18 2011] [error] [client 127.0.0.1] 'import site' failed; use -v for traceback\r [Tue Nov 08 09:24:18 2011] [error] [client 127.0.0.1] Traceback (most recent call last):\r [Tue Nov 08 09:24:18 2011] [error] [client 127.0.0.1] File "C:/_SOFT/OSGeo4W/bin/proxy.cgi", line 12, in <module>\r [Tue Nov 08 09:24:18 2011] [error] [client 127.0.0.1] import urllib2\r [Tue Nov 08 09:24:18 2011] [error] [client 127.0.0.1] ImportError: No module named urllib2\r 2.) localhost/client_using_proxy_cgi.html - attempt to load one WMS and two WFS layers Browser: Does open map window, loads controls, there are also WFS layers in layer switcher, but there are no WFS layers visible on the map Firebug: POST http://localhost/cgi-bin/proxy.cgi?url=http%3A%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwfs 500 (Internal Server Error) POST http://localhost/cgi-bin/proxy.cgi?url=http%3A%2F%2Flocalhost%3A8080%2Fgeoserver%2Fwfs 500 (Internal Server Error) Apache err. log: [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] Premature end of script headers: proxy.cgi, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] 'import site' failed; use -v for traceback\r, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] Traceback (most recent call last):\r, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] File "C:/_SOFT/OSGeo4W/bin/proxy.cgi", line 12, in <module>\r, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] import urllib2\r, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] ImportError: No module named urllib2\r, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] Premature end of script headers: proxy.cgi, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] 'import site' failed; use -v for traceback\r, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] Traceback (most recent call last):\r, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] File "C:/_SOFT/OSGeo4W/bin/proxy.cgi", line 12, in <module>\r, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] import urllib2\r, referer: http://localhost/dp_dev.html [Tue Nov 08 09:26:57 2011] [error] [client 127.0.0.1] ImportError: No module named urllib2\r, referer: http://localhost/dp_dev.html As far I understand, it's missing some kind of library urllib2 it trys to include/import as some reference? So I was searching for it. Python.exe is located in C:\_SOFT\OSGeo4W\bin and all pythons libs are located in other directory C:\_SOFT\OSGeo4W\apps\python25\lib - urllib2.py. Okay let's use my limited knowledge about this: do I need to simply copy->place urllib2.py to some special directory or use some kind of absolute path to that file? What about that PHP script? Any ideas how to do that? Thank you guyz. Tom -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/proxy-and-apache-tp6960380p6974203.html Sent from the OpenLayers Users mailing list archive at Nabble.com. _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
