Hi,
I'd like to give GeoServer a fixed URL for inclusion in the OnlineRessource elements of the Capabilities Document. Is that possible?
Normally as far as I see Geoserver just uses the URL of the incoming request to fill these fields, unfortunately this is a problem for a setup here, where Geoserver works behind a firewall and the URL in the request is changed to carry a private IP.
The problem is later on when accessing the Geoserver through GeoTools, these fetch the capabilities from Geoserver, even if provided with a "correct" (i.e. with only public domain names) capabilities document.
I couldn't find anything in the documentation about this, but I hope there is a way to set a fixed value for the URL.
Andreas
There's no way to configure this other than getting in to the code currently. But if someone were to make it an option in the web admin tool we'd happily include it.
If you want to hack it in that's pretty easy to do. Just change the getBaseUrl() method in: https://svn.codehaus.org/geoserver/trunk/geoserver/src/org/vfny/geoserver/util/Requests.java
Change it from the dynamic to just a string of the url you want.
public static String getBaseUrl(HttpServletRequest httpServletRequest) {
return "http://topp.openplans.org";
}
for example.
If you'd like you can also fund a developer to add it as an option, it wouldn't take long at all for an experience developer. Then you could configure it from the web admin tool. Or I'm happy to direct a developer on how to do it right, instead of just hacking it in.
best regards,
Chris
Andreas Pakulat wrote:
Hi,
I'd like to give GeoServer a fixed URL for inclusion in the OnlineRessource elements of the Capabilities Document. Is that possible?
Normally as far as I see Geoserver just uses the URL of the incoming request to fill these fields, unfortunately this is a problem for a setup here, where Geoserver works behind a firewall and the URL in the request is changed to carry a private IP.
The problem is later on when accessing the Geoserver through GeoTools, these fetch the capabilities from Geoserver, even if provided with a "correct" (i.e. with only public domain names) capabilities document.
I couldn't find anything in the documentation about this, but I hope there is a way to set a fixed value for the URL.
Andreas
-------------------------------------------------------
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
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org