I wonder then if I can use in server.xml
<Context path="" docBase="/tomcat/webapps/myapp"/>
To change the default application serving when someone requests myserver.com:8080

And then in apache to use

DocumentRoot "/tomcat/webapps/myapp"

<Directory "/tomcat/webapps/myapp">
   Options FollowSymlinks
   DirectoryIndex index.html login.jsp
   AllowOverride None
   Allow from all
</Directory>
   <Directory "/tomcat/webapps/myapp/WEB-INF/">
   AllowOverride None
   deny from all
</Directory>
   <Directory "/tomcat/webapps/myapp/META-INF/">
   AllowOverride None
   deny from all
</Directory>
JkMount /*.jsp client
JkMount /*.do client







Mark Thomas wrote:
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 is much better to keep Tomcat and httpd separate.


JkMount /*.jsp ajp13
JkMount /*.jspa ajp13
JkMount /* ajp13

Use
JkMount /myapp/*.jsp ajp13

etc to map a single context.

Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


--
Best regards,

Nikolay Diulgerov
Network Administrator
E-mail: ndiulge...@imx.fr
Telephone : +33 4 89 87 77 77
Fax :       +33 4 89 87 77 00
Web: http://www.codix-france.com

Reply via email to