Are you getting a Forbidden message from Apache server? I ran into that problem as well, and Bill Barker was kind enough to respond. This was his post:
"You need 775 (or at least 5 on the last digit). Apache requires "x" permissions (which, for a directory means "list" rather than "execute" on *nix systems) on the directories. Apache will do a tree-walk from '/' to your directory incase you have any '.htaccess' files installed". What I did to correct the problem was change the tomcat directory to owner and group rwx and other to rx. I recursively changed permissions so that all subdirectories and files would have 775 permissions and that removed the access denied problem. On a side note, I wonder if you can get away with just the tomcat directory itself, and then recursively change the webapps directory to have those permissions ....but I am thinking if the work directory doesn't have the same permissions you may have trouble accessing the compiled servlets and jsp's? (someone else would be able to answer that guess better than I) HTH Denise Mangano Help Desk Analyst Complus Data Innovations, Inc. -----Original Message----- From: Nick Stuart [mailto:[EMAIL PROTECTED]] Sent: Monday, December 23, 2002 1:27 PM To: Tomcat Users List Subject: virtual host problems... Ok, I have tomcat and apache running together nicely but am having a problem getting the virtual hosting for it to work. Right now when I go to: <VirtualHost vort112> ServerName vort112 Alias /examples "/usr/local/tomcat/webapps/examples" <Directory "/usr/local/tomcat/webapps/examples"> Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp </Directory> # Deny direct access to WEB-INF and META-INF # <Location "/examples/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/examples/META-INF/*"> AllowOverride None deny from all </Location> JkMount /examples/jsp/security/protected/j_security_check worker1 JkMount /examples/snoop worker1 JkMount /examples/servlet/* worker1 JkMount /examples/CompressionTest worker1 JkMount /examples/*.jsp worker1 JkMount /examples/servletToJsp worker1 JkMount /examples/SendMailServlet worker1 </VirtualHost> /jsp/ it re-directs me to http://<ip-address>/examples/jsp/ which I dont really want. Now when I had the following for virtual hosting.. <VirtualHost vort112> ServerName vort112 Alias /examples "/usr/local/tomcat/webapps/examples" <Directory "/usr/local/tomcat/webapps/examples"> Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp </Directory> # Deny direct access to WEB-INF and META-INF # <Location "/examples/WEB-INF/*"> AllowOverride None deny from all </Location> <Location "/examples/META-INF/*"> AllowOverride None deny from all </Location> JkMount /examples/jsp/security/protected/j_security_check worker1 JkMount /examples/snoop worker1 JkMount /examples/servlet/* worker1 JkMount /examples/CompressionTest worker1 JkMount /examples/*.jsp worker1 JkMount /examples/servletToJsp worker1 JkMount /examples/SendMailServlet worker1 </VirtualHost> I have some odd behavior. What happens is that i can still go to: http://<domain>/examples and it will display the contents of it in the tomcat format, but when I got to: http://<domain>/examples/jsp/ it gives an access denied error, even if I just try to go to a normal html page inside that directory. Not sure what to change, I basically copied what was generated in the mod_jk.conf-auto file by tomcat, but didn't want to use it because I don't need/want all the other directories in there. I've look through the archives and couldn't find any thing that resembled this problem, so any advice would be greatly appreciated. Thanks for your time! -- -Nick Stuart USM Computer Science Major Visit us at http://csforum.newtsplace.com (run with LAMP) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
