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