Hi, This is what I got with error.log file:
SyntaxError: invalid syntax\r, referer: http://localhost/temp/temp.html Premature end of script headers: proxy.cgi, referer: http://localhost/temp/temp.html File "C:/Server/Apache22/htdocs/temp/proxy.cgi", line 45\r, referer: http://localhost/temp/temp.html print "Status: 502 Bad Gateway"\r, referer: http://localhost/temp/temp.html ^\r, referer: http://localhost/temp/temp.html SyntaxError: invalid syntax\r, referer: http://localhost/temp/temp.html Thanks, Nipuni On Wed, Jun 5, 2013 at 10:30 AM, Raffaele Morelli < raffaele.more...@gmail.com> wrote: > 2013/6/5 Nipuni Perera <nipuni880...@gmail.com> > >> Hi, >> >> Yes I have Python installed and the first line of the proxy.cgi is >> >> #!C:/Python33/python.exe -u >> >> which points to the python.exe location. >> I have set the changes to httpd.conf file as described >> here<http://vijaysambhe.wordpress.com/2012/10/12/openlayers-cross-domain-configure-proxyhost-on-windows/>. >> >> >> I have reinstalled Python and the response change from the script to an >> error message. This is the response I received for the POST request: >> >> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>500 >> Internal Server Error</title></head><body><h1>Internal Server >> Error</h1><p>The server encountered an internal error ormisconfiguration and >> was unable to completeyour request.</p><p>Please contact the server >> administrator, ad...@example.com and inform them of the time the error >> occurred,and anything you might have done that may havecaused the >> error.</p><p>More information about this error may be availablein the server >> error log.</p></body></html> >> >> >> This is the same error message I get when I try to open the proxy.cgi from >> localhost. >> >> Thanks, >> Nipuni >> > > You should have a look at apache error log, it's clearly a > misconfiguration in apache (error 500) and what you need for debug is there. > I would suggest to check directory and/or file permissions (ie. virtual > host configuration directives). > > /r > > _______________________________________________ > Users mailing list > us...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users > > -- Nipuni Piyabasi Perera Undergraduate Department of Computer Science And Engineering University of Moratuwa Sri Lanka
_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users