Re: Tomcat 9 symlinks ?

2024-06-19 Thread Christopher Schultz
Chuck, On 6/19/24 15:49, Chuck Caldarale wrote: On Jun 19, 2024, at 14:42, Stephen Tenberg wrote: You asked why path="" instead of path="foo" in context at server.xml? That was our attempt to mount this application at "/" instead of at "/foo" which is a requirement here. Just deploy

Re: Tomcat 9 symlinks ?

2024-06-19 Thread Chuck Caldarale
Also take a look at this: https://tomcat.apache.org/tomcat-9.0-doc/security-howto.html#Default_web_applications - Chuck > On Jun 19, 2024, at 15:23, Robert Turner wrote: > > This page might be a useful resource to read if you haven't already: >

Re: Tomcat 9 symlinks ?

2024-06-19 Thread Robert Turner
This page might be a useful resource to read if you haven't already: https://tomcat.apache.org/tomcat-9.0-doc/config/context.html The short version is -- to publish an application in the "root" web url path (of http(s)://your.server-name.com/), you can name your WAR file "ROOT.war" and copy it to

Re: Tomcat 9 symlinks ?

2024-06-19 Thread Chuck Caldarale
> On Jun 19, 2024, at 15:16, Stephen Tenberg wrote: > > Thank you. Do we just rename the existing ROOT to something else so the > admin stuff is available? The default ROOT application does not have any admin purpose itself, but it does have links to admin functions that are separate from

Re: Tomcat 9 symlinks ?

2024-06-19 Thread Stephen Tenberg
Thank you. Do we just rename the existing ROOT to something else so the admin stuff is available? The path="" was appealing as we want this existing large application to be available as "/". Is renaming ROOT a better way of achieving this? On Wed, Jun 19, 2024 at 3:50 PM Chuck Caldarale wrote:

Re: Tomcat 9 symlinks ?

2024-06-19 Thread Chuck Caldarale
> On Jun 19, 2024, at 14:42, Stephen Tenberg wrote: > > You asked why path="" instead of path="foo" in context at server.xml? > > That was our attempt to mount this application at "/" instead of at "/foo" > which is a requirement here. Just deploy the application as ROOT (case matters)

Re: Tomcat 9 symlinks ?

2024-06-19 Thread Stephen Tenberg
Thanks very much for the comprehensive reply. I tried as you suggested and it worked fine, resolving symbolic links both inside and outside the tomcat webapps directory. You asked why path="" instead of path="foo" in context at server.xml? That was our attempt to mount this application at "/"

Re: Tomcat 9 symlinks ?

2024-06-19 Thread Christopher Schultz
Stephen, On 6/19/24 13:55, Stephen Tenberg wrote: Hello I have scoured the web trying to get symlinks working for jsp pages or folders in Tomcat 9 using Ubuntu 20.04. Here is how to repeat the issue, and what I have tried. 1. Create a new folder in webapps, say "foo" 2. Put HelloWorld.jsp

Tomcat 9 symlinks ?

2024-06-19 Thread Stephen Tenberg
Hello I have scoured the web trying to get symlinks working for jsp pages or folders in Tomcat 9 using Ubuntu 20.04. Here is how to repeat the issue, and what I have tried. 1. Create a new folder in webapps, say "foo" 2. Put HelloWorld.jsp there 3. (I restarted Tomcat just in case) Verify it