Re: tomcat and apache document root

2009-07-29 Thread Mark Thomas
Nikolay Diulgerov wrote: > About the double deployment ... you seems to be right Odd that... > but if I dont want > to rename the app to ROOT can I move it to for example > /myapp > and then to have > Yes. If the docBase is outside of the Host's appBase then you can do that. > And second ... is

Re: tomcat and apache document root

2009-07-29 Thread Mark Thomas
Nikolay Diulgerov wrote: > Mark, > what do you mean by > separation of httpd and Tomcat I mean that my own view is that httpd and Tomcat should not be serving content from the same directory structure. That way only Tomcat can possibly serve the files Tomcat is meant to serve and only httpd can se

Re: tomcat and apache document root

2009-07-29 Thread Nikolay Diulgerov
About the double deployment ... you seems to be right but if I dont want to rename the app to ROOT can I move it to for example /myapp and then to have And second ... is there an option to change so not /tomcat/webapps/ROOT is the default but /tomcat/webapps/myapp is the default. Nikolay

Re: tomcat and apache document root

2009-07-29 Thread Nikolay Diulgerov
Mark, what do you mean by separation of httpd and Tomcat Do you mean that httpd should redirect all requests to tomcat and not serve static files? Or that httpd should have alias /myapp and still serve static files for it. Or something different? Mark Thomas wrote: Nikolay Diulgerov

Re: tomcat and apache document root

2009-07-29 Thread Mark Thomas
Nikolay Diulgerov wrote: > I wonder then if I can use in server.xml > > To change the default application serving when someone requests > myserver.com:8080 No. That will result in double deployment. Just rename webapps/myapp to webapps/ROOT > And then in apache to use > > DocumentRoot "/tomcat/

Re: tomcat and apache document root

2009-07-29 Thread Nikolay Diulgerov
I wonder then if I can use in server.xml To change the default application serving when someone requests myserver.com:8080 And then in apache to use DocumentRoot "/tomcat/webapps/myapp" Options FollowSymlinks DirectoryIndex index.html login.jsp AllowOverride None Allow from all

Re: tomcat and apache document root

2009-07-29 Thread Mark Thomas
Nikolay Diulgerov wrote: > hello there, > I just wonder if there is an option to configure apache to serve as > document root /tomcat/webapps/myapp Unless you are very careful (and you haven't been - /WEB-INF/ & /META-INF/ are wide open), that is a really bad idea from a security point of view. It

tomcat and apache document root

2009-07-29 Thread Nikolay Diulgerov
hello there, I just wonder if there is an option to configure apache to serve as document root /tomcat/webapps/myapp I have in apache DocumentRoot "/tomcat/webapps/myapp" Options FollowSymlinks DirectoryIndex index.jsp AllowOverride None Allow from all JkMount /*.jsp ajp13 Jk