[Geoserver-users] Geoserver and Apache - give me port 80 or let me eat cake

Hi guys

I was wondering whether it was possible to encapsulate Geoserver behind Apache on port 80.

I'm running geoserver on port 8080 and it's working fine, but I've noticed that some of my clients have problems accessing port 8080, now this is usually easy to fix on their end, but I was wondering whether I could save myself the bother and simply make apache act as a proxy for geoserver, basically to take a request to port 80 for something like HYPERLINK "http://my.apacheserver.com/geoserver/wms and query HYPERLINK "http://localhost:8080/geoserver/wms with the same parameters and then return whatever geoserver would return.

I realize that I can deploy geoserver in tomcat container, but that would still eintail me running it on a port other than 80, since I already have Apache running tilecache under mod_python on 80.

I realize I could write a script that does this, but I'm just wondering whether anybody has any experience in doing this. Like, is there noticable delay in routing everything through Apache? Am I perhaps going about this completely asswards?

Kind regards from Iceland,

Gissur

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.19/1257 - Release Date: 3.2.2008 17:49

There's actually a page on the wiki about setting up Apache to proxy requests
so that geoserver appears to be running on port 80 even though Apache is
already using that port. You can configure the proxy url in the geoserver
configuration to have geoserver generate links that also use port 80, if you
want; otherwise it will still generate links using port 8080.

The wiki page is here:
http://docs.codehaus.org/display/GEOSDOC/How+to+proxy+Jetty+through+Apache+on+port+80

Hope this helps,
David Winslow

On Monday 04 February 2008 10:07:14 Gissur Þórhallsson wrote:

Hi guys

I was wondering whether it was possible to encapsulate Geoserver behind
Apache on port 80.

I'm running geoserver on port 8080 and it's working fine, but I've noticed
that some of my clients have problems accessing port 8080, now this is
usually easy to fix on their end, but I was wondering whether I could save
myself the bother and simply make apache act as a proxy for geoserver,
basically to take a request to port 80 for something like HYPERLINK
"http://my.apacheserver.com/geoserver/wms"http://my.apacheserver.com/geoser
ver/wms and query HYPERLINK
"http://localhost:8080/geoserver/wms
with the same parameters and then return whatever geoserver would return.

I realize that I can deploy geoserver in tomcat container, but that would
still eintail me running it on a port other than 80, since I already have
Apache running tilecache under mod_python on 80.

I realize I could write a script that does this, but I'm just wondering
whether anybody has any experience in doing this. Like, is there noticable
delay in routing everything through Apache? Am I perhaps going about this
completely asswards?

Kind regards from Iceland,

Gissur

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.19/1257 - Release Date: 3.2.2008
17:49

!DSPAM:4040,47a72a1b3047180515871!

Hello.

You can use mod_jk (Tomcat Connector) to route requests to a tomcat server running on the same or a different machine.

Create a file in /etc/apache/conf.d with a name like “mod-jk”:

JkWorkersFile /etc/libapache2-mod-jk/workers.properties
JkLogFile /var/log/apache2/mod_jk.log
JkLogLevel info
JkMount /geoserver/* ajp13_worker

Configure your /etc/libapache2-mod-jk/workers.properties and you’re set.

Ivan Toledo


De: geoserver-users-bounces@lists.sourceforge.net [mailto:geoserver-users-bounces@lists.sourceforge.net] En nombre de Gissur Þórhallsson
Enviado el: Lunes, 04 de Febrero de 2008 12:07
Para: geoserver-users@lists.sourceforge.net
Asunto: [Geoserver-users] Geoserver and Apache - give me port 80 or let meeat cake

Hi guys

I was wondering whether it was possible to encapsulate Geoserver behind Apache on port 80.

I’m running geoserver on port 8080 and it’s working fine, but I’ve noticed that some of my clients have problems accessing port 8080, now this is usually easy to fix on their end, but I was wondering whether I could save myself the bother and simply make apache act as a proxy for geoserver, basically to take a request to port 80 for something like http://my.apacheserver.com/geoserver/wms and query http://localhost:8080/geoserver/wms with the same parameters and then return whatever geoserver would return.

I realize that I can deploy geoserver in tomcat container, but that would still eintail me running it on a port other than 80, since I already have Apache running tilecache under mod_python on 80.

I realize I could write a script that does this, but I’m just wondering whether anybody has any experience in doing this. Like, is there noticable delay in routing everything through Apache? Am I perhaps going about this completely asswards?

Kind regards from ,

Gissur

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.19/1257 - Release Date: 3.2.2008 17:49

Hello,

I have a geoserver/tomcat running on 8080 (and on Linux) but answering
external http requests on 80. For that I use a "Kernel space port
forwarding" technique described on

http://www.klawitter.de/tomcat80.html

Works fine and was no trouble to set.

Cheers,

Ugo

Gissur Þórhallsson wrote:

Hi guys

I was wondering whether it was possible to encapsulate Geoserver behind Apache on port 80.

I'm running geoserver on port 8080 and it's working fine, but I've noticed that some of my clients have problems accessing port 8080, now this is usually easy to fix on their end, but I was wondering whether I could save myself the bother and simply make apache act as a proxy for geoserver, basically to take a request to port 80 for something like HYPERLINK "http://my.apacheserver.com/geoserver/wms and query HYPERLINK "http://localhost:8080/geoserver/wms with the same parameters and then return whatever geoserver would return.

I realize that I can deploy geoserver in tomcat container, but that would still eintail me running it on a port other than 80, since I already have Apache running tilecache under mod_python on 80.

I realize I could write a script that does this, but I'm just wondering whether anybody has any experience in doing this. Like, is there noticable delay in routing everything through Apache? Am I perhaps going about this completely asswards?

Kind regards from Iceland,

Gissur

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.19.19/1257 - Release Date: 3.2.2008 17:49

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Ugo Taddei

Fraunhofer Institut Intelligente Analyse- und Informationssysteme (FhG IAIS)
http://www.iais.fraunhofer.de
Department Knowledge Discovery - IAIS.KD -
Working Group Spatial Decision Support
http://www.iais.fraunhofer.de/kd.html
phone (+49)2241-14-2184 fax (+49)2241-14-2072
Schloss Birlinghoven, D-53754 Sankt Augustin, Germany
------------------------------------------------------
Visit our thematic mapping tool CommonGIS: http://www.commongis.de