Geoserver – How to Use Geoserver Behind a Proxy with OpenLayers

geoserveropenlayers-2

I just start to work with Geoserver and Openlayers and one of the main concerns of the project now is do not expose the geoserver web interface outside of the internal network. No access to www.mydomain.com/geoserver/

However the application that is available in the Internet needs to get data (wms/wfs) from the GeoServer. This all through OpenLayers.

Is this possible?

Best Answer

You can have an apache httpd as frontend listening on port 80 with proyxing rewrite-rules (see mod_rewrite and mod_proxy) mapping /whateverurl on apache to /geoserver/wms on the geoserver running on another tcp port.

Se more: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html