Hello to all
Does anybody knows if i can add data from geomedia webmap to openlayers and combine them with my geoservers data?
G. Tsolakis
On Wed, Dec 3, 2008 at 6:41 PM, <geoserver-users-request@lists.sourceforge.net> wrote:
Send Geoserver-users mailing list submissions to
geoserver-users@lists.sourceforge.netTo subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/geoserver-users
or, via email, send a message with subject or body ‘help’ to
geoserver-users-request@lists.sourceforge.netYou can reach the person managing the list at
geoserver-users-owner@lists.sourceforge.netWhen replying, please edit your Subject line so it is more specific
than “Re: Contents of Geoserver-users digest…”Today’s Topics:
- Re: Geoserver and NAT (Indika Tantrigoda)
- Re: Geoserver and NAT (Arne Kepp)
- Re: Geoserver and NAT (Andrea Aime)
- Re: Geoserver and NAT (Indika Tantrigoda)
Message: 1
Date: Wed, 3 Dec 2008 10:09:37 +0530
From: “Indika Tantrigoda” <indika85@…84…>
Subject: Re: [Geoserver-users] Geoserver and NAT
To: “Arne Kepp” <ak@…1671…>
Cc: “geoserver-users@lists.sourceforge.net”
<geoserver-users@lists.sourceforge.net>
Message-ID:
<4390fbee0812022039j2ca254f2y8d3ccf2720c46608@…85…>
Content-Type: text/plain; charset=“iso-8859-1”Hi Arne,
Thanks for the info. I think I messed my configurations in setting up the
proxy.Can u explain a little more on
*Just make sure the path you are proxying is the same as the servlet
context, i.e. don’t proxy
http://yourhostname/some_other_name to http://localhost:8080/geoserver*Thanks,
Regards,
Indika2008/12/3 Arne Kepp <ak@…1671…>
Indika Tantrigoda wrote:
Hi,
The NAT setup is not setup to work on the local network. Only requests
coming
from the Internet pass through the NAT. Also I dont have access to the DNS
machine.
So I am kinda stuck.Keeping the web files in /geoserver/data_dir/www seems to be a temporary
solution,
however in the long run I would prefer to have them in /var/www.I’ll keep trying to find a work around for this. Maybe going through the
server logs would shed some
light. However I dont plan to keep the geoserver box behind a NAT server
in the long run.Also can anyone point me to any services that offer geoserver and postgres
hosting facilities.Thanks for all the help.
Regards,
IndikaNot sure I follow on all this, but what we do at OpenGeo is exactly what I
would do in your case. David linked to it before [1].The method doesn’t care about NAT, just make sure you use URLs like
“/geoserver/wfs” or “geoserver/wfs” when doing WFS queries. Do not tell the
WFS client to use http://something:8080 , because if you accessed the
JavaScript through :80 then it will treat :8080 as a different host.So this means you can put your HTML and JavaScript in /var/www , and Apache
will pretend like GeoServer lives in
/var/www/geoserver, so http://somehostname/geoserver will work, and the
external http://someotherhostname:8081/geoserver will also work
automatically.Just make sure the path you are proxying is the same as the servlet
context, i.e. don’t proxy
http://yourhostname/some_other_name to http://localhost:8080/geoserverHope that helps, make sure you have the proxy working internally before you
start worrying about the NAT.Regarding hosting: I don’t know of any GeoServer / Postgresql specific
hosting facilities. Personally I use hetzner.de a lot (49 Euros per month
for the cheapest dedicated box, if you’re comfy with Linux). You can also
try Amazon EC2 or other VPSs for a small installation, but unfortunately I
have no specific advice to offer.-Arne
1:
http://geoserver.org/display/GEOSDOC/How+to+proxy+Jetty+through+Apache+on+port+80–
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers-------------- next part --------------
An HTML attachment was scrubbed…
Message: 2
Date: Wed, 03 Dec 2008 11:23:32 +0100
From: Arne Kepp <ak@…1671…>
Subject: Re: [Geoserver-users] Geoserver and NAT
To: Indika Tantrigoda <indika85@…84…>, geoserver-users
<geoserver-users@lists.sourceforge.net>
Message-ID: <49365E24.50804@…1671…>
Content-Type: text/plain; charset=ISO-8859-1; format=flowedSure, it’s only a matter of concern for the user interface, for the
following reason:If proxying is all setup, and you proxy,
http://yourhostname/some_other_name to http://localhost:8080/geoserver,then your client makes a request for a page, say
http://yourhostname/some_other_name/Demo.doBut what GeoServer receives is a request for
http://localhost:8080/geoserver/Demo.do , since Apache has rewritten it.GeoServer’s current UI makes URL with absolute pathnames. So when it
sees that the request URL was http://localhost:8080/geoserver/Demo.do ,
It’ll return a page that has links to things like /geoserver/style.cssWhen the client takes this path from the returned webpage, and asks
Apache for http://yourhostname/geoserver/style.css , it’ll get a 404
because Apache doesn’t know what to do with it. This will happen with
images etc, so the UI becomes pretty useless.However, I believe accessing WFS and WMS directly will still work, so if
you don’t care about configuration UI it’s fine.-Arne
Indika Tantrigoda wrote:
Hi Arne,
Thanks for the info. I think I messed my configurations in setting up
the proxy.Can u explain a little more on
/Just make sure the path you are proxying is the same as the servlet
context, i.e. don’t proxy
http://yourhostname/some_other_name to http://localhost:8080/geoserver/Thanks,
Regards,
Indika2008/12/3 Arne Kepp <ak@…1671… mailto:[ak@...1671...](mailto:ak@...1671...)>
Indika Tantrigoda wrote:
Hi,
The NAT setup is not setup to work on the local network. Only
requests coming
from the Internet pass through the NAT. Also I dont have
access to the DNS machine.
So I am kinda stuck.Keeping the web files in /geoserver/data_dir/www seems to be a
temporary solution,
however in the long run I would prefer to have them in /var/www.I’ll keep trying to find a work around for this. Maybe going
through the server logs would shed some
light. However I dont plan to keep the geoserver box behind a
NAT server in the long run.Also can anyone point me to any services that offer geoserver
and postgres hosting facilities.Thanks for all the help.
Regards,
IndikaNot sure I follow on all this, but what we do at OpenGeo is
exactly what I would do in your case. David linked to it before [1].The method doesn’t care about NAT, just make sure you use URLs
like “/geoserver/wfs” or “geoserver/wfs” when doing WFS queries.
Do not tell the WFS client to use http://something:8080 , because
if you accessed the JavaScript through :80 then it will treat
:8080 as a different host.So this means you can put your HTML and JavaScript in /var/www ,
and Apache will pretend like GeoServer lives in
/var/www/geoserver, so http://somehostname/geoserver will work,
and the external http://someotherhostname:8081/geoserver will also
work automatically.Just make sure the path you are proxying is the same as the
servlet context, i.e. don’t proxy
http://yourhostname/some_other_name to http://localhost:8080/geoserverHope that helps, make sure you have the proxy working internally
before you start worrying about the NAT.Regarding hosting: I don’t know of any GeoServer / Postgresql
specific hosting facilities. Personally I use hetzner.de
<http://hetzner.de> a lot (49 Euros per month for the cheapest
dedicated box, if you’re comfy with Linux). You can also try
Amazon EC2 or other VPSs for a small installation, but
unfortunately I have no specific advice to offer.-Arne
1:
http://geoserver.org/display/GEOSDOC/How+to+proxy+Jetty+through+Apache+on+port+80–
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers–
Arne Kepp
OpenGeo - http://opengeo.org
Expert service straight from the developers
Message: 3
Date: Wed, 03 Dec 2008 11:36:14 +0100
From: Andrea Aime <aaime@…1671…>
Subject: Re: [Geoserver-users] Geoserver and NAT
To: Arne Kepp <ak@…1671…>
Cc: geoserver-users <geoserver-users@lists.sourceforge.net>
Message-ID: <4936611E.5050000@…1671…>
Content-Type: text/plain; charset=ISO-8859-1; format=flowedArne Kepp ha scritto:
Sure, it’s only a matter of concern for the user interface, for the
following reason:If proxying is all setup, and you proxy,
http://yourhostname/some_other_name to http://localhost:8080/geoserver,then your client makes a request for a page, say
http://yourhostname/some_other_name/Demo.doBut what GeoServer receives is a request for
http://localhost:8080/geoserver/Demo.do , since Apache has rewritten it.GeoServer’s current UI makes URL with absolute pathnames. So when it
sees that the request URL was http://localhost:8080/geoserver/Demo.do ,
It’ll return a page that has links to things like /geoserver/style.cssWhen the client takes this path from the returned webpage, and asks
Apache for http://yourhostname/geoserver/style.css , it’ll get a 404
because Apache doesn’t know what to do with it. This will happen with
images etc, so the UI becomes pretty useless.Actually I believe Gabriel solved this issue months ago by creating
a proxy filter that rewrites the urls in the UI on the fly.
Not sure this is documented anywhere thought…Cheers
Andrea–
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.
Message: 4
Date: Wed, 3 Dec 2008 22:11:02 +0530
From: “Indika Tantrigoda” <indika85@…84…>
Subject: Re: [Geoserver-users] Geoserver and NAT
To: “Andrea Aime” <aaime@…1671…>
Cc: geoserver-users <geoserver-users@lists.sourceforge.net>
Message-ID:
<4390fbee0812030841q7c86c4b3k7ec830c5e2c378ac@…85…>
Content-Type: text/plain; charset=“iso-8859-1”Hi,
Thanks for all the info. Really appreciate it. I’ll follow up on this and
try to get
around the issue. I’d better check up on proxying with apache first.Regards,
Indika2008/12/3 Andrea Aime <aaime@…1671…>
Arne Kepp ha scritto:
Sure, it’s only a matter of concern for the user interface, for the
following reason:If proxying is all setup, and you proxy,
http://yourhostname/some_other_name to http://localhost:8080/geoserver,then your client makes a request for a page, say
http://yourhostname/some_other_name/Demo.doBut what GeoServer receives is a request for
http://localhost:8080/geoserver/Demo.do , since Apache has rewritten it.GeoServer’s current UI makes URL with absolute pathnames. So when it sees
that the request URL was http://localhost:8080/geoserver/Demo.do , It’ll
return a page that has links to things like /geoserver/style.cssWhen the client takes this path from the returned webpage, and asks Apache
for http://yourhostname/geoserver/style.css , it’ll get a 404 because
Apache doesn’t know what to do with it. This will happen with images etc, so
the UI becomes pretty useless.Actually I believe Gabriel solved this issue months ago by creating
a proxy filter that rewrites the urls in the UI on the fly.
Not sure this is documented anywhere thought…Cheers
Andrea–
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.-------------- next part --------------
An HTML attachment was scrubbed…
This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-usersEnd of Geoserver-users Digest, Vol 31, Issue 6
–
Γεώργιος Τσολάκης - Περιβαλλοντολόγος
Γραφείο Περιβαλλοντικών Μελετών
Ζήνωνος 57. Περιστέρι. Αθήνα
tel: +30 210 5727615
fax: +30 210 5727995
mobile: + 30 6977 158693
email: gtsolakis@…84…
URL : www.mpe.gr