Skip to content

Instantly share code, notes, and snippets.

@waynegraham
Created July 7, 2015 12:54
Show Gist options
  • Save waynegraham/03baf0278fc362cbfc56 to your computer and use it in GitHub Desktop.
Save waynegraham/03baf0278fc362cbfc56 to your computer and use it in GitHub Desktop.
Geoserver httpd configuration
<VirtualHost *:80>
ServerName geoserver.virginia.edu
DocumentRoot /path/to/a/document/root
ErrorLog logs/error_log
CustomLog logs/access_log common
<Directory /path/to/a/document/root>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
<Location /geoserver>
ProxyPass http://localhost:8080/geoserver
ProxyPassReverse http://localhost:8080/geoserver
</Location>
<Location /geonetwork>
ProxyPass ajp://127.0.0.1:8009/geonetwork
</Location>
<Location /ows/wfs>
ProxyPass ajp://127.0.0.1:8009/geoserver/wfs?service=wfs&request=GetCapabilities
</Location>
<Location /ows/wms>
ProxyPass ajp://127.0.0.1:8009/geoserver/wms?service=wms&request=GetCapabilities
</Location>
ProxyPreserveHost On
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment