<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-7" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Any particular reason why are you running your GeoServer in port 443?
It's usually reserved for https. Maybe your Windows/IIS don't like the
idea of it. Can you try another port, like 8888 for example?<br>
<br>
- mika -<br>
<br>
george gpoul48 kirjoitti:
<blockquote cite="mid:SNT105-W58B5192F5B051D3DE221CBA2AE0@phx.gbl"
type="cite">
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style> <br>
i dont get any error message from iis log. Yes it is the same host for
web and geoserver but different ports. <br>
<br>
> Date: Mon, 23 Feb 2009 12:22:49 +0100<br>
> Subject: Re: [OpenLayers-Users] proxy not working<br>
> From: <a class="moz-txt-link-abbreviated" href="mailto:igrcic@gmail.com">igrcic@gmail.com</a><br>
> To: <a class="moz-txt-link-abbreviated" href="mailto:mika@digikartta.net">mika@digikartta.net</a><br>
> CC: <a class="moz-txt-link-abbreviated" href="mailto:gpoul48@hotmail.com">gpoul48@hotmail.com</a>; <a class="moz-txt-link-abbreviated" href="mailto:users@openlayers.org">users@openlayers.org</a><br>
> <br>
> Yup might be something about IIS. Seems that proxy is set up fine,
and<br>
> geoserver is working ok.<br>
> <br>
> But when you run<br>
>
<a class="moz-txt-link-freetext" href="http://84.205.237.73/script/proxy.py?url=http://84.205.237.73:443/geoserver/wms?REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=142.52861%2C-44.59531%2C149.785355%2C-38.626637&X=567&Y=316&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=tasmania&FEATURE_COUNT=50&Layers=tasmania&Styles=&Srs=EPSG%3A4326&WIDTH=800&HEIGHT=658&format=image%2Fpng">http://84.205.237.73/script/proxy.py?url=http://84.205.237.73:443/geoserver/wms?REQUEST=GetFeatureInfo&EXCEPTIONS=application%2Fvnd.ogc.se_xml&BBOX=142.52861%2C-44.59531%2C149.785355%2C-38.626637&X=567&Y=316&INFO_FORMAT=text%2Fhtml&QUERY_LAYERS=tasmania&FEATURE_COUNT=50&Layers=tasmania&Styles=&Srs=EPSG%3A4326&WIDTH=800&HEIGHT=658&format=image%2Fpng</a><br>
> <br>
> you get:<br>
> Some unexpected error occurred. Error text was: <urlopen error
[Errno<br>
> 10060] A connection attempt failed because the connected party did
not<br>
> properly respond after a period of time, or established connection<br>
> failed because connected host has failed to respond><br>
> <br>
> What does ur IIS log say? Sorry but dont know much about IIS,
always<br>
> used apache or in J2EE environment.<br>
> Maybe here are some users that set it up on IIS??<br>
> <br>
> 2009/2/23 Mika Lehtonen <a class="moz-txt-link-rfc2396E" href="mailto:mika@digikartta.net"><mika@digikartta.net></a>:<br>
> > Hi George,<br>
> ><br>
> > maybe you indeed need a proxy. You are running your servers
in a same host,<br>
> > but in different ports, right? I'm not an expert on this, but
I think that's<br>
> > the case. From the proxy point of view, they're not a same
host.<br>
> > I am still thinking that this could be an IIS related
problem. I tried your<br>
> > proxy and it seemed to be working when accessing
openlayers.org or<br>
> > openstreetmap.org. But when I tried to access your server
(Jetty?), I get<br>
> > these:<br>
> ><br>
> >
<a class="moz-txt-link-freetext" href="http://84.205.237.73/script/proxy.py?url=http://84.205.237.73:443/geoserver/">http://84.205.237.73/script/proxy.py?url=http://84.205.237.73:443/geoserver/</a><br>
> ><br>
> > Some unexpected error occurred. Error text was: <urlopen
error [Errno 10060]<br>
> > A connection attempt failed because the connected party did
not properly<br>
> > respond after a period of time, or established connection
failed because<br>
> > connected host has failed to respond><br>
> ><br>
> > - mika -<br>
> ><br>
> > P.S. I think you could also set some proxy up in your IIS so
that e.g. all<br>
> > the requests made to host/geoserver/ would redirect to
host:443/ or<br>
> > something like that..<br>
> ><br>
> > george gpoul48 kirjoitti:<br>
> ><br>
> > It is working without proxy only in localhost, but not from
the internet.<br>
> > That is why i used proxy. Is it possible to run without
proxy? Regarding iis<br>
> > i have no idea what it should be. IIS configured and tested
to run python<br>
> > without problem. Any idea?<br>
> ><br>
> > thank you all for your concern<br>
> ><br>
> > ________________________________<br>
> > Date: Mon, 23 Feb 2009 11:02:36 +0200<br>
> > From: <a class="moz-txt-link-abbreviated" href="mailto:mika@digikartta.net">mika@digikartta.net</a><br>
> > To: <a class="moz-txt-link-abbreviated" href="mailto:igrcic@gmail.com">igrcic@gmail.com</a><br>
> > CC: <a class="moz-txt-link-abbreviated" href="mailto:gpoul48@hotmail.com">gpoul48@hotmail.com</a>; <a class="moz-txt-link-abbreviated" href="mailto:users@openlayers.org">users@openlayers.org</a><br>
> > Subject: Re: [OpenLayers-Users] proxy not working<br>
> ><br>
> > Hi Ivan and George,<br>
> ><br>
> > I just tested the site and it seems that the request sent
works. Also the<br>
> > proxy works. But do you need proxy when using GetFeatureInfo?<br>
> ><br>
> > maybe this has something to do with IIS?<br>
> ><br>
> > - mika -<br>
> ><br>
> > Ivan Grcic kirjoitti:<br>
> ><br>
> > Hi,<br>
> ><br>
> > first check if the normal request is working, without proxy.
What does<br>
> > firebug say if its not working?<br>
> ><br>
> > On Mon, Feb 23, 2009 at 9:26 AM, george gpoul48
<a class="moz-txt-link-rfc2396E" href="mailto:gpoul48@hotmail.com"><gpoul48@hotmail.com></a> wrote:<br>
> ><br>
> ><br>
> > Hallo everyone!!<br>
> > I use this proxy.py file and i am trying to get
information for a map<br>
> > feature clicking on it, but the computer returns this message:<br>
> > "Some unexpected error occurred. Error text was:" Can anyone
help me? Where<br>
> > am i wrong?<br>
> ><br>
> > See my map at <a class="moz-txt-link-freetext" href="http://84.205.237.73/default/mytest.aspx">http://84.205.237.73/default/mytest.aspx</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > Proxy.py code<br>
> > #!C:/Python26/python.exe -u<br>
> ><br>
> > import urllib2<br>
> > import cgi<br>
> > import sys, os<br>
> > # Designed to prevent Open Proxy type stuff.<br>
> > allowedHosts = ['84.205.237.73:443', '<a class="moz-txt-link-abbreviated" href="http://www.openlayers.org">www.openlayers.org</a>',
'openlayers.org',<br>
> > 'labs.metacarta.com', 'world.freemap.in',<br>
> > 'prototype.openmnnd.org', 'geo.openplans.org',<br>
> > 'sigma.openplans.org',<br>
> > '<a class="moz-txt-link-abbreviated" href="http://www.openstreetmap.org">www.openstreetmap.org</a>']<br>
> > method = os.environ["REQUEST_METHOD"]<br>
> > if method == "POST":<br>
> > qs = os.environ["QUERY_STRING"]<br>
> > d = cgi.parse_qs(qs)<br>
> > if d.has_key("url"):<br>
> > url = d["url"][0]<br>
> > else:<br>
> > url = <a class="moz-txt-link-rfc2396E" href="http://www.openlayers.org">"http://www.openlayers.org"</a><br>
> > else:<br>
> > fs = cgi.FieldStorage()<br>
> > url = fs.getvalue('url', <a class="moz-txt-link-rfc2396E" href="http://www.openlayers.org">"http://www.openlayers.org"</a>)<br>
> > try:<br>
> > host = url.split("/")[2]<br>
> > if allowedHosts and not host in allowedHosts:<br>
> > print "Status: 502 Bad Gateway"<br>
> > print "Content-Type: text/plain"<br>
> > print<br>
> > print "This proxy does not allow you to access that
location (%s)."<br>
> > % (host,)<br>
> > print<br>
> > print os.environ<br>
> ><br>
> > elif url.startswith(<a class="moz-txt-link-rfc2396E" href="http://">"http://"</a>) or
url.startswith(<a class="moz-txt-link-rfc2396E" href="https://">"https://"</a>):<br>
> ><br>
> > if method == "POST":<br>
> > length = int(os.environ["CONTENT_LENGTH"])<br>
> > headers = {"Content-Type":
os.environ["CONTENT_TYPE"]}<br>
> > body = sys.stdin.read(length)<br>
> > r = urllib2.Request(url, body, headers)<br>
> > y = urllib2.urlopen(r)<br>
> > else:<br>
> > y = urllib2.urlopen(url)<br>
> ><br>
> > # print content type header<br>
> > i = y.info()<br>
> > if i.has_key("Content-Type"):<br>
> > print "Content-Type: %s" % (i["Content-Type"])<br>
> > else:<br>
> > print "Content-Type: text/plain"<br>
> > print<br>
> ><br>
> > print y.read()<br>
> ><br>
> > y.close()<br>
> > else:<br>
> > print "Content-Type: text/plain"<br>
> > print<br>
> > print "Illegal request."<br>
> > except Exception, E:<br>
> > print "Status: 500 Unexpected Error"<br>
> > print "Content-Type: text/plain"<br>
> > print<br>
> > print "Some unexpected error occurred. Error text was:", E<br>
> ><br>
> >
------------------------------------------------------------------<br>
> ><br>
> > getfeatureinfo code<br>
> ><br>
> > .<br>
> > .<br>
> > .<br>
> > OpenLayers.ProxyHost = "/script/proxy.py?url=";<br>
> > .<br>
> > .<br>
> > .<br>
> > map.events.register('click', map, function (e) {<br>
> >
document.getElementById('nodelist').innerHTML = "Please<br>
> > wait...";<br>
> > var params = {<br>
> > REQUEST: "GetFeatureInfo",<br>
> > EXCEPTIONS:
"application/vnd.ogc.se_xml",<br>
> > BBOX: map.getExtent().toBBOX(),<br>
> > X: e.xy.x,<br>
> > Y: e.xy.y,<br>
> > INFO_FORMAT: 'text/html',<br>
> > QUERY_LAYERS:
map.layers[0].params.LAYERS,<br>
> > FEATURE_COUNT: 50,<br>
> > Layers: 'Tinos:dimoi',<br>
> > Styles: '',<br>
> > Srs: 'EPSG:900913',<br>
> > WIDTH: map.size.w,<br>
> > HEIGHT: map.size.h,<br>
> > format: format};<br>
> ><br>
> > OpenLayers.loadURL(<a class="moz-txt-link-rfc2396E" href="http://84.205.237.73:443/geoserver/wms">"http://84.205.237.73:443/geoserver/wms"</a>,
params, this,<br>
> > setHTML, setHTML);<br>
> > OpenLayers.Event.stop(e);<br>
> > });<br>
> ><br>
> ><br>
> > // sets the HTML provided into the nodelist
element<br>
> > function setHTML(response){<br>
> > document.getElementById('nodelist').innerHTML
=<br>
> > response.responseText;<br>
> > };<br>
> ><br>
> ><br>
> > ________________________________<br>
> > Κάντε κλικ για να παίξετε Fishticuffs με τους φίλους σας,
τώρα! Κάντε κλικ<br>
> > εδώ!<br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> > <a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> ><br>
> > ________________________________<br>
> > Φέρτε τους φίλους σας από το Facebook και το Hotmail στον
Messenger ΤΩΡΑ!<br>
> > Κάντε κλικ εδώ!<br>
> ><br>
> > ________________________________<br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> > <a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a><br>
> > <a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a><br>
> ><br>
> ><br>
> <br>
> <br>
> <br>
> -- <br>
> Ivan Grcic<br>
<br>
<hr>Κάντε κλικ για να παίξετε Fishticuffs με τους φίλους σας, τώρα! <a
moz-do-not-send="true"
href="http://www.livemessenger-emoticons.com/fishticuffs/el-gr/"
target="_new">Κάντε κλικ εδώ!</a>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@openlayers.org">Users@openlayers.org</a>
<a class="moz-txt-link-freetext" href="http://openlayers.org/mailman/listinfo/users">http://openlayers.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>