yes if i go on: http://localhost:8080/examples/cgi-bin/proxy.cgi HTTP Status 404 - type Status report message description The requested resource is not available.
while if i go on: http://localhost:8080/examples/cgi/proxy.cgi i read : #!/Python27/python.exe -u """This is a blind proxy that we use to get around browser restrictions that prevent the Javascript from loading pages not on the same server as the Javascript. This has several problems: it's less efficient, it might break some sites, and it's a security risk because people can use this proxy to browse the web and possibly do bad stuff with it. It only loads pages via http and https, but it can load any content type. It supports GET and POST requests.""" import urllib2 import cgi import sys, os # Designed to prevent Open Proxy type stuff. allowedHosts = ['www.openlayers.org', 'openlayers.org', 'labs.metacarta.com', 'world.freemap.in', 'prototype.openmnnd.org', 'geo.openplans.org', 'sigma.openplans.org', 'demo.opengeo.org', 'www.openstreetmap.org', 'sample.azavea.com', 'v2.suite.opengeo.org', 'v-swe.uni-muenster.de:8080', 'vmap0.tiles.osgeo.org', 'www.openrouteservice.org', 'localhost:8080'] method = os.environ["REQUEST_METHOD"] if method == "POST": qs = os.environ["QUERY_STRING"] d = cgi.parse_qs(qs) if d.has_key("url"): url = d["url"][0] else: url = "http://www.openlayers.org" else: fs = cgi.FieldStorage() url = fs.getvalue('url', "http://www.openlayers.org") etc etc > Subject: Re: Problem With proxi.cgi > To: users@tomcat.apache.org > From: ch...@christopherschultz.net > Date: Tue, 19 Jan 2016 11:15:46 -0500 > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Luciano, > > On 1/19/16 11:05 AM, Luciano Martin Galletti wrote: > > Yes both xml files are inside C:\Program Files\Apache Software > > Foundation\Tomcat 7.0\webapps\examples\WEB-INF while proxy.cgi is > > in C:\Program Files\Apache Software Foundation\Tomcat > > 7.0\webapps\examples\WEB-INF\cgi > > If proxy.cgi is in examples/WEB-INF/cgi, then your URL needs to be: > > http://localhost:8080/examples/cgi-bin/proxy.cgi > > You had: > > http://localhost:8080/examples/ac/proxy.cgi > > - -chris > -----BEGIN PGP SIGNATURE----- > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iEYEARECAAYFAlaeYTIACgkQ9CaO5/Lv0PA0fQCfVTF8IUdPdA1OO7OiuJSHzbGm > vSYAn1sc3luSGzNAcWMokuf0+puWfh8T > =rSzQ > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org >