New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support tomcat root #47
base: master
Are you sure you want to change the base?
Support tomcat root #47
Conversation
…e deployed at, including ROOT. added logic to ignore ROOT_WEBAPP_REDIRECT if context is ROOT added logic to choose the correct url for the healthcheck
Hi. Thank you for the PR. Could you add a small section to the README to explain this new feature? |
@reinout thank you for the comments and suggestions. While my proposed change (with a couple of fixes) works ok for building a custom image, I'd like to try another approach that allows someone to change the context path after the image is built instead. I think that I can do this by either: turning off autodeploy and deployonstartup in server.xml and changing the context.xml or by moving the geoserver webapp files out of the /webapp path and altering the context.xml (according to tomcat 9 docs). Is one of these approaches preferred? Also, should I close this pull request and start fresh, or just make those changes to this pull request branch? |
…loyOnStartup to false url in HEALTHCHECK written to file so that it can be set on startup updated README with usage info
This version keeps all of the geoserver files in /webapps/geoserver, but changes the context path by setting the docBase and path attributes in a context element in server.xml. AFAIK, this is the only way to accomplish this without moving the docBase for the app context out of the host's appBase. From the Tomcat docs:
Some relevant Tomcat 9 documentation is here: |
…BAPP_CONTEXT is not ''
No description provided.