DocumentRoot "C:/jakarta-tomcat-4-1-24/webapps/geode"
You will need to copy the mod_jk.conf file to some other location and modify it manually. Change your Include line in httpd.conf to reflect the new location. I like to put mine in the Apache conf directory.
I'm not sure what you mean exactly by "directly under Apache"...as Apache doesn't care where files are located as long as it has the appropriate permissions to access them and can find them. Your files do not have to be under any particular directory.
I'd have to know more about where you want to put your static resources exactly.
Another option is to do something like:
Alias /static "C:/path/to/static/stuff"
There are various ways to do it, without knowing exactly what your dir structure is, what URL you want to use, etc. it is hard to give you a specific answer. In any case, you will likely have to modify mod_jk.conf by hand, which means putting it in a location where it won't be overwritten each time you start Tomcat, otherwise you will have to make the same changes over and over again.
The whole mod_jk.conf thing is a convenience. It doesn't scale very well at all. I don't use it for my production servers, I make my changes by hand. Its in my HOWTO because its the easiest way for a newbie to get up and running. For complex setups (especially multiple virtual hosts and multiple webapps) you will want to avoid relying on it.
John
v.siguier wrote:
No problem, my question is : I have configured Apache and Tomcat with mod_jk in order to connect them together but now all ressources of my application must be located under Tomcat directory to be founded. As I want to put all static ressources directly under Apache, somebody can tell me what I have to configure in Apache or Tomcat to do this ?
Forgive me, but I've lost track of what this thread is about.
What is not happening that you want to see happen, given the configuration files you've posted? What is your question again?
John
v.siguier wrote:
The generated jakarta-tomcat-4-1-24\conf\auto\mod_jk.conf :
########## Auto generated on Thu Jul 31 15:51:00 CEST 2003##########
<IfModule !mod_jk.c> LoadModule jk_module c:/apache/Apache2/modules/mod_jk-2.0.43.dll </IfModule>
JkWorkersFile "C:/jakarta-tomcat-4-1-24/conf/jk/workers.properties" JkLogFile "C:/jakarta-tomcat-4-1-24/logs/mod_jk.log"
JkLogLevel emerg
<VirtualHost localhost> ServerName localhost
#################### localhost:/examples ####################
# Static files Alias /examples "C:/jakarta-tomcat-4-1-24/webapps/examples"
<Directory "C:/jakarta-tomcat-4-1-24/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> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "C:/jakarta-tomcat-4-1-24/webapps/examples/WEB-INF/"> AllowOverride None deny from all </Directory>
<Directory "C:/jakarta-tomcat-4-1-24/webapps/examples/META-INF/"> AllowOverride None deny from all </Directory>
JkMount /examples/jsp/security/protected/j_security_check ajp13 JkMount /examples/snoop ajp13 JkMount /examples/CompressionTest ajp13 JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 JkMount /examples/servletToJsp ajp13 JkMount /examples/SendMailServlet ajp13
#################### localhost:/webdav ####################
# Static files Alias /webdav "C:/jakarta-tomcat-4-1-24/webapps/webdav"
<Directory "C:/jakarta-tomcat-4-1-24/webapps/webdav">
Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm </Directory>
# Deny direct access to WEB-INF and META-INF # <Location "/webdav/WEB-INF/*"> AllowOverride None deny from all </Location>
<Location "/webdav/META-INF/*"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "C:/jakarta-tomcat-4-1-24/webapps/webdav/WEB-INF/"> AllowOverride None deny from all </Directory>
<Directory "C:/jakarta-tomcat-4-1-24/webapps/webdav/META-INF/"> AllowOverride None deny from all </Directory>
JkMount /webdav/*.jsp ajp13
#################### localhost:/tomcat-docs ####################
# Static files Alias /tomcat-docs "C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs"
<Directory "C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp </Directory>
# Deny direct access to WEB-INF and META-INF # <Location "/tomcat-docs/WEB-INF/*"> AllowOverride None deny from all </Location>
<Location "/tomcat-docs/META-INF/*"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs/WEB-INF/"> AllowOverride None deny from all </Directory>
<Directory "C:/jakarta-tomcat-4-1-24/webapps/tomcat-docs/META-INF/"> AllowOverride None deny from all </Directory>
JkMount /tomcat-docs/*.jsp ajp13
#################### localhost:/manager ####################
# Static files Alias /manager "C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager"
<Directory "C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp </Directory>
# Deny direct access to WEB-INF and META-INF # <Location "/manager/WEB-INF/*"> AllowOverride None deny from all </Location>
<Location "/manager/META-INF/*"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager/WEB-INF/"> AllowOverride None deny from all </Directory>
<Directory "C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/manager/META-INF/"> AllowOverride None deny from all </Directory>
JkMount /manager/html/* ajp13 JkMount /manager/resources ajp13 JkMount /manager/undeploy ajp13 JkMount /manager/sessions ajp13 JkMount /manager/serverinfo ajp13 JkMount /manager/reload ajp13 JkMount /manager/start ajp13 JkMount /manager/*.jsp ajp13 JkMount /manager/list ajp13 JkMount /manager/stop ajp13 JkMount /manager/deploy ajp13 JkMount /manager/roles ajp13 JkMount /manager/remove ajp13 JkMount /manager/install ajp13
#################### localhost:/admin ####################
# Static files Alias /admin "C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/admin"
<Directory "C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/admin">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp </Directory>
# Deny direct access to WEB-INF and META-INF # <Location "/admin/WEB-INF/*"> AllowOverride None deny from all </Location>
<Location "/admin/META-INF/*"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/admin/WEB-INF/"> AllowOverride None deny from all </Directory>
<Directory "C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/admin/META-INF/"> AllowOverride None deny from all </Directory>
JkMount /admin/j_security_check ajp13 JkMount /admin/*.jsp ajp13 JkMount /admin/*.do ajp13
#################### localhost:/geode ####################
# Static files Alias /geode "C:/jakarta-tomcat-4-1-24/webapps/geode"
<Directory "C:/jakarta-tomcat-4-1-24/webapps/geode">
Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp </Directory>
# Deny direct access to WEB-INF and META-INF # <Location "/geode/WEB-INF/*"> AllowOverride None deny from all </Location>
<Location "/geode/META-INF/*"> AllowOverride None deny from all </Location> # # Use Directory too. On Windows, Location doesn't work unless case matches # <Directory "C:/jakarta-tomcat-4-1-24/webapps/geode/WEB-INF/"> AllowOverride None deny from all </Directory>
<Directory "C:/jakarta-tomcat-4-1-24/webapps/geode/META-INF/"> AllowOverride None deny from all </Directory>
JkMount /geode/jsp/j_security_check ajp13 JkMount /geode/*.jsp ajp13 </VirtualHost>
OK, but where's mod_jk.conf? That's the critical file!
John
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------
Faites un voeu et puis Voila ! www.voila.fr
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
