I'm trying to setup Apache to proxy requests to so that we can access
geoserver through a friendly URL.
So far I have been able to configure it so geoserver is available via:
http://geoserver.mtri.org/geoserver/
but I have been unable to figure out how to make geoserver available with
http://geoserver.mtri.org/
I've tried a variety of apache config options, but either the links on the
geoserver UI pages or the openlayers demo pages fail to work.
------------------ working code (http://geoserver.mtri.org/geoserver)
------------------
Apache config...
<VirtualHost *>
ServerName geoserver.mtri.org
ServerAlias geoserver
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://servername:8085/
ProxyPassReverse / http://servername:8085/
...
And I've configured the ProxyBaseURL for geoserver in the services.xml file
<ProxyBaseUrl>http://geoserver.mtri.org/</ProxyBaseUrl>
with this setup I can access geoserver through the following URL...
http://geoserver.mtri.org/geoserver/welcome.do
------------------ non-working code (http://geoserver.mtri.org)
------------------
<VirtualHost *>
ServerName geoserver.mtri.org
ServerAlias geoserver
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://servername:8085/geoserver/
ProxyPassReverse / http://servername:8085/geoserver/
...
And I've configured the ProxyBaseURL for geoserver in the services.xml file
<ProxyBaseUrl>http://geoserver.mtri.org/</ProxyBaseUrl>
I can access geoserver through the following URL
http://geoserver.mtri.org/welcome.do
but now all the links within the geoserver interface point to bad URLs. For
example, when I click on the demo link, I get an error...
HTTP ERROR: 404
Invalid path was requested
RequestURI=/geoserver/geoserver/demo.do
Powered by Jetty://
-----------------------------------------
Any suggestions on how to correctly config apache so that the base URL
http://geoserver.mtri.org works without needing to include /geoserver/ ?
- Tyler
--
View this message in context: http://www.nabble.com/question-on-apache-proxy-config-tp16037860p16037860.html
Sent from the GeoServer - User mailing list archive at Nabble.com.