Hi,
I'm struggling trying to figure out how to configure the hostname in Geoserver (1.4.0b2 on linux x86_64, java-1.5.0-bea)
My environment is a Linux IPVS cluster, with geoserver running on a 'real-server' with an IP of 10.10.10.40 . I'm using apache's proxy pass to forward traffic from the webfarm nodes to geoserver, so when I hit this url from external:
http://mesonet.agron.iastate.edu/geoserver/
I can access geoserver...
The issue is that all of the links on the admin page reference 10.10.10.40:8080, which is not valid outside of the IPVS cluster.
How can I configure geoserver so that it knows its hostname is mesonet.agron.iastate.edu ?
I suspect this is trivial to set up and I missed it in the docs 
thanks!
daryl
Hey, it's not super well documented and is a recent addition, so not too surprising you didn't find it. We should probably add it to the FAQ.
See: http://docs.codehaus.org/display/GEOSDOC/Configure+GeoServer+to+run+with+a+proxy
I believe for RC2 this should be accessible from the web admin tool, I think under Config -> Server
best regards,
Chris
Daryl Herzmann wrote:
Hi,
I'm struggling trying to figure out how to configure the hostname in Geoserver (1.4.0b2 on linux x86_64, java-1.5.0-bea)
My environment is a Linux IPVS cluster, with geoserver running on a 'real-server' with an IP of 10.10.10.40 . I'm using apache's proxy pass to forward traffic from the webfarm nodes to geoserver, so when I hit this url from external:
http://mesonet.agron.iastate.edu/geoserver/
I can access geoserver...
The issue is that all of the links on the admin page reference 10.10.10.40:8080, which is not valid outside of the IPVS cluster.
How can I configure geoserver so that it knows its hostname is mesonet.agron.iastate.edu ?
I suspect this is trivial to set up and I missed it in the docs 
thanks!
daryl
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1003,4547850934014820651628!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
thanks for the help!
On Tue, 31 Oct 2006, Chris Holmes wrote:
Hey, it's not super well documented and is a recent addition, so not too surprising you didn't find it. We should probably add it to the FAQ.
See: http://docs.codehaus.org/display/GEOSDOC/Configure+GeoServer+to+run+with+a+proxy
Okay, so in etc/webdefault.xml I added
<context-param>
<param-name>PROXY_BASE_URL</param-name>
<param-value>http://mesonet.agron.iastate.edu/</param\-value>
</context-param>
Restarted the server and I still get the "bad" links.
I believe for RC2 this should be accessible from the web admin tool, I think under Config -> Server>
Ufff, I can't get to that page because of the above. When I try to use 'links' over localhost from the terminal, I get socket errors
sorry,
daryl
Daryl Herzmann wrote:
thanks for the help!
On Tue, 31 Oct 2006, Chris Holmes wrote:
Hey, it's not super well documented and is a recent addition, so not too surprising you didn't find it. We should probably add it to the FAQ.
See: http://docs.codehaus.org/display/GEOSDOC/Configure+GeoServer+to+run+with+a+proxy
Okay, so in etc/webdefault.xml I added
What about in webapps/geoserver/WEB-INF/web.xml? I think that's the location we were referring to, I'm not sure if webdefault.xml gets picked up...
Or geoserver/server/geoserver/WEB-INF/web.xml if you've got a binary install
<context-param>
<param-name>PROXY_BASE_URL</param-name>
<param-value>http://mesonet.agron.iastate.edu/</param\-value>
</context-param>
Restarted the server and I still get the "bad" links.
To be extra sure get it completely off and back on. web.xml may only load on a full restart.
I believe for RC2 this should be accessible from the web admin tool, I think under Config -> Server>
Ufff, I can't get to that page because of the above. When I try to use 'links' over localhost from the terminal, I get socket errors
hrm. This is a bit weird, it seems like the proxy should be able to handle this... But I don't know that much about proxies...
Is GeoServer in tomcat or are you running the binary version?
best regards,
Chris
sorry,
daryl
!DSPAM:1003,45479b8652471804284693!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
Daryl Herzmann ha scritto:
thanks for the help!
On Tue, 31 Oct 2006, Chris Holmes wrote:
Hey, it's not super well documented and is a recent addition, so not too surprising you didn't find it. We should probably add it to the FAQ.
See: http://docs.codehaus.org/display/GEOSDOC/Configure+GeoServer+to+run+with+a+proxy
Okay, so in etc/webdefault.xml I added
<context-param>
<param-name>PROXY_BASE_URL</param-name>
<param-value>http://mesonet.agron.iastate.edu/</param\-value>
</context-param>
Restarted the server and I still get the "bad" links.
Humm... in fact it seems you're right... doh, I did not have a proxy to test with so I used local/public ip address, but I probably screwed up...
Ok, reopening the bug and this time I'll setup Squid as a reverse proxy
and have geoserver redirected on another port to make sure.
Cheers
Andrea Aime
On Tue, 31 Oct 2006, Chris Holmes wrote:
On Tue, 31 Oct 2006, Chris Holmes wrote:
Hey, it's not super well documented and is a recent addition, so not too surprising you didn't find it. We should probably add it to the FAQ.
See: http://docs.codehaus.org/display/GEOSDOC/Configure+GeoServer+to+run+with+a+proxy
Okay, so in etc/webdefault.xml I added
What about in webapps/geoserver/WEB-INF/web.xml? I think that's the location we were referring to, I'm not sure if webdefault.xml gets picked up...
I should have mentioned that I tried that location first without success.
Restarted the server and I still get the "bad" links.
To be extra sure get it completely off and back on. web.xml may only load on a full restart.
Yup, stopped, modified config and then started. Sorry for the vague terminology.
I believe for RC2 this should be accessible from the web admin tool, I think under Config -> Server>
Ufff, I can't get to that page because of the above. When I try to use 'links' over localhost from the terminal, I get socket errors
hrm. This is a bit weird, it seems like the proxy should be able to handle this... But I don't know that much about proxies...
Is GeoServer in tomcat or are you running the binary version?
binary.
thanks!
daryl