tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clay Jones <c...@clay-jones.com>
Subject Re: apache 2.0.45/tomcat 4.1.24 mod_jk trouble
Date Tue, 15 Apr 2003 16:07:34 GMT
Here you go:


########## Auto generated on Tue Apr 15 11:42:30 EDT 2003##########

<IfModule !mod_jk.c>
   LoadModule jk_module /usr/local/apache2/modules/mod_jk.so
</IfModule>

JkWorkersFile "/usr/local/tomcat/conf/jk/workers.properties"
JkLogFile "/usr/local/tomcat/logs/mod_jk.log"

JkLogLevel info



<VirtualHost www.clay-jones.com>
     ServerName www.clay-jones.com

     #################### www.clay-jones.com:/admin ####################

     # Static files
     Alias /admin "/usr/local/tomcat/webapps/../server/webapps/admin"

     <Directory "/usr/local/tomcat/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>

     JkMount /admin/j_security_check  ajp13
     JkMount /admin/*.do  ajp13
     JkMount /admin/*.jsp  ajp13

     #################### www.clay-jones.com:/webdav ####################

     # Static files
     Alias /webdav "/usr/local/jakarta-tomcat-4.1.24/webapps/webdav"

     <Directory "/usr/local/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>

     JkMount /webdav/*.jsp  ajp13

     #################### www.clay-jones.com:/examples  
####################

     # Static files
     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  ajp13
     JkMount /examples/snoop  ajp13
     JkMount /examples/servlet/*  ajp13
     JkMount /examples/CompressionTest  ajp13
     JkMount /examples/*.jsp  ajp13
     JkMount /examples/servletToJsp  ajp13
     JkMount /examples/SendMailServlet  ajp13

     #################### www.clay-jones.com:/tomcat-docs  
####################

     # Static files
     Alias /tomcat-docs  
"/usr/local/jakarta-tomcat-4.1.24/webapps/tomcat-docs"

     <Directory "/usr/local/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>

     JkMount /tomcat-docs/*.jsp  ajp13

     #################### www.clay-jones.com:/manager  
####################

     # Static files
     Alias /manager "/usr/local/tomcat/webapps/../server/webapps/manager"

     <Directory "/usr/local/tomcat/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>

     JkMount /manager/list  ajp13
     JkMount /manager/serverinfo  ajp13
     JkMount /manager/deploy  ajp13
     JkMount /manager/sessions  ajp13
     JkMount /manager/reload  ajp13
     JkMount /manager/html/*  ajp13
     JkMount /manager/resources  ajp13
     JkMount /manager/start  ajp13
     JkMount /manager/stop  ajp13
     JkMount /manager/install  ajp13
     JkMount /manager/*.jsp  ajp13
     JkMount /manager/roles  ajp13
     JkMount /manager/remove  ajp13
     JkMount /manager/undeploy  ajp13
</VirtualHost>

######################################################################## 
#####


On Tuesday, April 15, 2003, at 12:00 PM, John Turner wrote:

>
> Can you post the mod_jk.conf file for us?  Thanks.
>
> John
>
> On Tue, 15 Apr 2003 11:45:53 -0400, Clay Jones <clay@clay-jones.com>  
> wrote:
>
>> The mod_jk.log file only gets created when Apache starts up.  I  
>> changed the value to "info", but I still get a zero byte file.   
>> Apache's startup message says:
>>
>> [Tue Apr 15 11:46:22 2003] [notice] Apache/2.0.45 (Unix)  
>> mod_ssl/2.0.45 OpenSSL/0.9.6b mod_jk/1.2.2 PHP/4.3.1 configured --  
>> resuming normal operations
>>
>>
>> On Tuesday, April 15, 2003, at 11:05 AM, John Turner wrote:
>>
>>>
>>> If you change JkLogLevel to "info" and try again, can you post the  
>>> contents of your JK log file?
>>>
>>> John
>>>
>>> On Tue, 15 Apr 2003 10:55:01 -0400, Clay Jones <clay@clay-jones.com>  
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> I've been trying to integrate apache and tomcat for a while, and I  
>>>> cannot seem to make it work.  I'm using the following versions on  
>>>> Redhat 8:
>>>>
>>>> 1.  Apache 2.0.45 compiled from source
>>>> 2.  Tomcat 4.1.24
>>>> 3.  mod_jk.so
>>>>
>>>> For Apache:
>>>> I've added the mod_jk LoadModule calls to httpd.conf, and included  
>>>> the auto-conf file tomcat generates.
>>>>
>>>> For Tomcat:
>>>> I've also edited server.xml to add listeners for the server and  
>>>> host. The auto-conf file is generated and looks to be complete.   
>>>> There are several sections for creating the Apache Alias  
>>>> directives, etc.  I have a workers.properties file in  
>>>> /usr/local/tomcat/conf/jk.
>>>>
>>>> Accessing /examples on port 8080 works fine.  I get a 404 "File Not  
>>>> Found" error when I try to access /examples on port 80.  It appears  
>>>> that Apache is not properly sourcing the auto-conf file (Include  
>>>> directive).  If I add a static alias in httpd.conf, I can reference  
>>>> static pages in /usr/local/tomcat, but servlet execution is not  
>>>> processed by Tomcat.  The two do not appear to be talking to each  
>>>> other.
>>>>
>>>> I cannot find any indications from the logs for both applications  
>>>> as to what th eproblem may be.  Thanks in advance for any  
>>>> assistance.
>>>>
>>>> nmap reports:
>>>>
>>>> 80/tcp     open        http
>>>> 8009/tcp   open        ajp13
>>>> 8080/tcp   open        http-proxy
>>>>
>>>>
>>>> A portion of my auto-conf file is:
>>>>
>>>> # Static files
>>>> 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  ajp13
>>>> JkMount /examples/snoop  ajp13
>>>> JkMount /examples/servlet/*  ajp13
>>>> JkMount /examples/CompressionTest  ajp13
>>>> JkMount /examples/*.jsp  ajp13
>>>> JkMount /examples/servletToJsp  ajp13
>>>> JkMount /examples/SendMailServlet  ajp13
>>>>
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>> -- Using M2, Opera's revolutionary e-mail client:  
>>> http://www.opera.com/m2/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>
> -- 
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message