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?

  • 3
    The short answer is yes. I can't help you with a long answer, because the way we are doing it is a custom proxy that also handles our AAA needs. But basically it is all HTTP traffic.
    – relet
    Dec 10 '10 at 12:08

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


you can setup a reverse proxy. Then point OL to it like a normal url. I know you're not using ESRI but they have a guide online to setup a reverse proxy that would apply to your case.


It is possible, follow the instructions at http://ian01.geog.psu.edu/geoserver_docs/software/java.html but instead of /geoserver use /geoserver/wms and /geoserver/wfs

  • 3
    Link broken, solution lost... :S
    – inf3rno
    Oct 5 '15 at 17:02
  • @iant Hi there, inf3rno is right, link is broken.
    – slevin
    Oct 5 '15 at 20:22
  • 5 years is a long time :-(
    – Ian Turton
    Oct 6 '15 at 8:10

You can look at these two project, maybe they can help you:

  • GeoShield looks like unmaintained. Nov 2 '20 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.