0

I use the www directory of my GeoServer to serve different maps, mostly with Leaflet. Now I want to restrict the access with login credentials. I allready tried to get a htpasswd protection working, but this does not work in my GeoServer directories. I have GeoServer installed on Tomcat9 and Apache2 is in front of it.

1 Answer 1

2

I don't think there is any (easy) way to do that, the www directory was never intended for production code. You really need to use Apache to host your static pages and then redirect GeoServer requests through to tomcat and handle all you login at the Apache level.

1
  • Thanks, this helped me a lot. I managed to deposit my maps in the html directory of my apache installation and just use the layers geoserver is serving by calling them with their absolute paths. Commented Feb 28 at 14:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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