Hi
I am trying to setup an installation of geoserver on tomcat with apache in front of it.
I am trying to mount the web app such that the geoserver url is
http://geoserver.gbif.org
like we deploy all our java applications.
However it doesn’t seem too happy… I have either got a typo or I am wondering – does ’geoserver need the “/geoserver” in the URL – e.g.
http://geoserver.gbif.org/geoserver
Thanks,
Tim
Tim Robertson ha scritto:
Hi
I am trying to setup an installation of geoserver on tomcat with apache in front of it.
I am trying to mount the web app such that the geoserver url is
http://geoserver.gbif.org/>
like we deploy all our java applications.
However it doesn’t seem too happy… I have either got a typo or I am wondering – does ’geoserver need the “/geoserver” in the URL – e.g.
http://geoserver.gbif.org/geoserver
Hmmm... I don't think so, but you have to set the "Proxy base URL"
parameter in the Config/Server configuration panel.
Cheers
Andrea
It was indeed a typo... it can be mounted as a virtual host no problem in
tomcat with mod_jk
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com]
Sent: Monday, August 13, 2007 10:35 AM
To: Tim Robertson
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] DNS, URLs and /geoserver necessary?
Tim Robertson ha scritto:
Hi
I am trying to setup an installation of geoserver on tomcat with apache
in front of it.
I am trying to mount the web app such that the geoserver url is
http://geoserver.gbif.org/>
like we deploy all our java applications.
However it doesn't seem too happy. I have either got a typo or I am
wondering - does 'geoserver need the "/geoserver" in the URL - e.g.
http://geoserver.gbif.org/geoserver
Hmmm... I don't think so, but you have to set the "Proxy base URL"
parameter in the Config/Server configuration panel.
Cheers
Andrea
Hi,
My recent experience (5 min ago :-)) with tomcat and geoserver is that geoserver behaves correctly in asking the container for its mounting point. This lets you use a server.conf similar to this:
<Service name="Catalina">
<Connector port="9095" proxyName="my.domain.se" proxyPort="80" />
<Connector port="19095"/>
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
<Host name="localhost" appBase="webapps" />
</Engine>
</Service>
This lets you run geoserver proxed *and* access it unproxed, depending on which port you access it on.
Note: All this is without actually modifying PROXY_BASE_URL i geoserver's web.xml
Still, I haven't put this config through all its pases yet. I`ll report back if this doesn't work as well as it appears right now 
Maybe somehow this info could be of interest in some sort of installation wiki page?
Regards,
Per-Olof
Tim Robertson skrev:
It was indeed a typo... it can be mounted as a virtual host no problem in
tomcat with mod_jk
-----Original Message-----
From: Andrea Aime [mailto:aaime@anonymised.com] Sent: Monday, August 13, 2007 10:35 AM
To: Tim Robertson
Cc: geoserver-users@lists.sourceforge.net
Subject: Re: [Geoserver-users] DNS, URLs and /geoserver necessary?
Tim Robertson ha scritto:
Hi
I am trying to setup an installation of geoserver on tomcat with apache in front of it.
I am trying to mount the web app such that the geoserver url is
http://geoserver.gbif.org/>
like we deploy all our java applications.
However it doesn't seem too happy. I have either got a typo or I am wondering - does 'geoserver need the "/geoserver" in the URL - e.g.
http://geoserver.gbif.org/geoserver
Hmmm... I don't think so, but you have to set the "Proxy base URL"
parameter in the Config/Server configuration panel.
Cheers
Andrea
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Per-Olof Norén ha scritto:
Hi,
My recent experience (5 min ago :-)) with tomcat and geoserver is that geoserver behaves correctly in asking the container for its mounting point. This lets you use a server.conf similar to this:
<Service name="Catalina">
<Connector port="9095" proxyName="my.domain.se" proxyPort="80" />
<Connector port="19095"/>
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
<Host name="localhost" appBase="webapps" />
</Engine>
</Service>
This lets you run geoserver proxed *and* access it unproxed, depending on which port you access it on.
Note: All this is without actually modifying PROXY_BASE_URL i geoserver's web.xml
Still, I haven't put this config through all its pases yet. I`ll report back if this doesn't work as well as it appears right now 
Maybe somehow this info could be of interest in some sort of installation wiki page?
Indeed it would. The proxy base url thing was designed for reverse
proxies like Squid, and I was unsure about Apache integration in fact.
If you could write up something and send it by mail, we could definitely
add it as a guide in the wiki (the wiki is read only due to spam, only
developers can write on it). Anyways, if you feel like writing lots of
documentation, we can certainly give you write access 
Cheers
Andrea