You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by ba...@mediageneral.com on 2003/08/11 21:21:39 UTC

RE: JkMount causing problems - info from my httpd.conf file

Greetings,
This is everything JK related that is in my httpd.conf file.

LoadModule jk_module libexec/mod_jk.so
<IfModule !mod_jk.c>
LoadModule jk_module libexec/mod_jk.so
</IfModule>
JkWorkersFile "/usr/local/jakarta-tomcat-4.1.27/conf/jk/workers.properties"
JkLogFile "usr/local/jakarta-tomcat-4.1.27/logs/mod_jk.log"
JkLogLevel info

<VirtualHost *:443>
    DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps
    ServerName placeanad.classifiedmarketplace.net
    ErrorLog logs/placeanadclassi.com-error_log
    CustomLog logs/placeanadclassi.com-access_log common
    SSLEnable
    SSLCertificateFile /usr/local/apache1/conf/ssl.crt/server3.crt
    SSLCertificateKeyFile /usr/local/apache1/conf/ssl.crt/server.key3
    JkMount /* ajp13
</VirtualHost>

<VirtualHost *:80>
    DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps
    ServerName placeanad.classifiedmarketplace.net
    ErrorLog logs/placeanadclassi.com-error_log
    CustomLog logs/placeanadclassi.com-access_log common
    JkMount /* ajp13
</VirtualHost>

-----Original Message-----
From: John Turner [mailto:tomcat-user@johnturner.com] 
Sent: Monday, August 11, 2003 3:12 PM
To: Tomcat Users List
Subject: Re: JkMount causing problems



If you're using the auto-generation function (are you?), then copy 
mod_jk.conf from $CATALINA_HOME/conf/auto to $APACHE_HOME/conf, then 
edit httpd.conf and change the "Include" line to reflect the new 
location.  Then edit $APACHE_HOME/conf/mod_jk.conf.  Then restart Apache.

If you're not using the auto-generation function, then please post the 
relevant portions of your httpd.conf file (not the whole thing!).  That 
means all of it, the JkWorkersFile stuff, JkLogLevel, etc. not just the 
VirtualHost blocks.

John

batristain@mediageneral.com wrote:

> How would I fix that so it wouldn't be overwritten?
> 
> -----Original Message-----
> From: John Turner [mailto:tomcat-user@johnturner.com]
> Sent: Monday, August 11, 2003 3:08 PM
> To: Tomcat Users List
> Subject: Re: JkMount causing problems
> 
> 
> 
> Are you sure its set to info?  If you're using the auto-generation
> feature of Tomcat, then your change is probably getting overwritten.
> 
> There should be something if JkLogLevel is set to info.
> 
> John
> 
> batristain@mediageneral.com wrote:
> 
> 
>>Yes I don't have a mod_jk.log being created with the level set to info
>>
>>-----Original Message-----
>>From: Atristain, Bobbie J.
>>Sent: Monday, August 11, 2003 3:03 PM
>>To: tomcat-user@jakarta.apache.org
>>Subject: RE: JkMount causing problems
>>
>>
>>yes
>>
>>-----Original Message-----
>>From: John Turner [mailto:tomcat-user@johnturner.com]
>>Sent: Monday, August 11, 2003 2:41 PM
>>To: Tomcat Users List
>>Subject: Re: JkMount causing problems
>>
>>
>>
>>You have no mod_jk.log, even with JkLogLevel set to "info"?
>>
>>John
>>
>>batristain@mediageneral.com wrote:
>>
>>
>>
>>>The local host file doesn't say anything and I don't have a 
>>>mod_jk.log
>>>being created.  But I can't see any reason for it to not work.  I have 
>>>removed the 2nd 2 JkMount statements but the same thing is happening 
>>>at http://placeanad.classifiedmarketplace.net
>>>
>>>No idea what is going on?
>>>
>>>
>>>-----Original Message-----
>>>From: John Turner [mailto:tomcat-user@johnturner.com]
>>>Sent: Monday, August 11, 2003 2:28 PM
>>>To: Tomcat Users List
>>>Subject: Re: JkMount causing problems
>>>
>>>
>>>
>>>One thing is that DocumentRoot is typically not "webapps" but some
>>>directory under webapps, like "webapps/ROOT" or "webapps/myApp" or 
>>>whatever.
>>>
>>>What URL is causing the 500 error?
>>>
>>>What do Tomcat's logs say?
>>>
>>>Also, try setting JkLogLevel to "info", restarting, and trying it
>>>then.
>>>
>>>Also, the JkMounts you have are redundant...if you have "/*", there's
>>>no need for the other two, as "/*" means "send everything to Tomcat".
>>>
>>>John
>>>
>>>batristain@mediageneral.com wrote:
>>>
>>>
>>>
>>>
>>>>When I have the JkMount statements in my virtual host directives the 
>>>>server gives me a internal 500 server error message and the error 
>>>>log doesn't say anything This is what I have in my virtual host 
>>>>directives
>>>>
>>>><VirtualHost *:443>
>>>>  DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps
>>>>  ServerName placeanad.classifiedmarketplace.net
>>>>  ErrorLog logs/placeanadclassi.com-error_log
>>>>  CustomLog logs/placeanadclassi.com-access_log common
>>>>  SSLEnable
>>>>  SSLCertificateFile /usr/local/apache1/conf/ssl.crt/server3.crt
>>>>  SSLCertificateKeyFile /usr/local/apache1/conf/ssl.crt/server.key3
>>>>  JkMount /* ajp13
>>>>  JkMount /*.jsp ajp13
>>>>  JkMount /servlet/* ajp13
>>>></VirtualHost>
>>>>
>>>>Any ideas?
>>>>
>>>>Thanks,
>>>>bobbie
>>>>
>>>>Bobbie Atristain
>>>>Internet Systems Administrator
>>>>Media General, INC.
>>>>804.649.6156
>>>>
>>>>--------------------------------------------------------------------
>>>>-
>>>>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
>>>
>>>---------------------------------------------------------------------
>>>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
>>
>>---------------------------------------------------------------------
>>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
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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
> 



---------------------------------------------------------------------
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


Re: JkMount causing problems - info from my httpd.conf file

Posted by John Turner <to...@johnturner.com>.
Do you have:

NameVirtualHost *

in httpd.conf?

With the config you posted, Apache starts up without errors?

John

batristain@mediageneral.com wrote:

> Greetings,
> This is everything JK related that is in my httpd.conf file.
> 
> LoadModule jk_module libexec/mod_jk.so
> <IfModule !mod_jk.c>
> LoadModule jk_module libexec/mod_jk.so
> </IfModule>
> JkWorkersFile "/usr/local/jakarta-tomcat-4.1.27/conf/jk/workers.properties"
> JkLogFile "usr/local/jakarta-tomcat-4.1.27/logs/mod_jk.log"
> JkLogLevel info
> 
> <VirtualHost *:443>
>     DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps
>     ServerName placeanad.classifiedmarketplace.net
>     ErrorLog logs/placeanadclassi.com-error_log
>     CustomLog logs/placeanadclassi.com-access_log common
>     SSLEnable
>     SSLCertificateFile /usr/local/apache1/conf/ssl.crt/server3.crt
>     SSLCertificateKeyFile /usr/local/apache1/conf/ssl.crt/server.key3
>     JkMount /* ajp13
> </VirtualHost>
> 
> <VirtualHost *:80>
>     DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps
>     ServerName placeanad.classifiedmarketplace.net
>     ErrorLog logs/placeanadclassi.com-error_log
>     CustomLog logs/placeanadclassi.com-access_log common
>     JkMount /* ajp13
> </VirtualHost>
> 



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


Re: JkMount causing problems - info from my httpd.conf file

Posted by John Turner <to...@johnturner.com>.
Do you have:

NameVirtualHost *

in httpd.conf?

With the config you posted, Apache starts up without errors?

John

batristain@mediageneral.com wrote:

> Greetings,
> This is everything JK related that is in my httpd.conf file.
> 
> LoadModule jk_module libexec/mod_jk.so
> <IfModule !mod_jk.c>
> LoadModule jk_module libexec/mod_jk.so
> </IfModule>
> JkWorkersFile "/usr/local/jakarta-tomcat-4.1.27/conf/jk/workers.properties"
> JkLogFile "usr/local/jakarta-tomcat-4.1.27/logs/mod_jk.log"
> JkLogLevel info
> 
> <VirtualHost *:443>
>     DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps
>     ServerName placeanad.classifiedmarketplace.net
>     ErrorLog logs/placeanadclassi.com-error_log
>     CustomLog logs/placeanadclassi.com-access_log common
>     SSLEnable
>     SSLCertificateFile /usr/local/apache1/conf/ssl.crt/server3.crt
>     SSLCertificateKeyFile /usr/local/apache1/conf/ssl.crt/server.key3
>     JkMount /* ajp13
> </VirtualHost>
> 
> <VirtualHost *:80>
>     DocumentRoot /usr/local/jakarta-tomcat-4.1.27/webapps
>     ServerName placeanad.classifiedmarketplace.net
>     ErrorLog logs/placeanadclassi.com-error_log
>     CustomLog logs/placeanadclassi.com-access_log common
>     JkMount /* ajp13
> </VirtualHost>
>