You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wayne Bragg <wl...@cox.net> on 2008/10/26 23:17:13 UTC
Apache mod_jk and Tomcat not working correctly
my setup:
WinXP Home
Wed-Dev install of:
Apache/2.2.3 (Win32)
Tomcat 5
PHP 5.2.0
I have mod_jk connector set up the following way according to
instructions:
Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
<Directory "/www/tomcat5/webapps/dwr-examples/">
Options Indexes FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from all
AddType text/html .php .phps
AddHandler application/x-httpd-php .php
AddHandler application/x-httpd-php-source .phps
</Directory>
mod_jk setup:
LoadModule jk_module modules/mod_jk.so
<IfModule jk_module>
JkWorkersFile conf/Suite-extra/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel warn
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
<Location /*/WEB-INF/*>
# AllowOverride None
deny from all
</Location>
JkMount /dwr-examples/*.jsp ajp13worker1
JkMount /dwr-examples/*.jspx ajp13worker1
JkUnMount /dwr-examples/*.html ajp13worker1
JkUnMount /dwr-examples/*.htm ajp13worker1
JkUnMount /dwr-examples/*.png ajp13worker1
JkUnMount /dwr-examples/*.jpg ajp13worker1
JkUnMount /dwr-examples/*.jpeg ajp13worker1
JkUnMount /dwr-examples/*.gif ajp13worker1
JkUnMount /dwr-examples/*.ico ajp13worker1
JkUnMount /dwr-examples/*.php ajp13worker1
</IfModule>
Everthing works using port 8080 but I am getting the following error in the
error.log in Apache when I use port
80 ie: http://localhost:8080/dwr-examples/ vs http://localhost/dwr-examples/
[Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4 configured
[Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
configured -- resuming normal operations
[Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
[Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
[Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4 configured
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker threads.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen on
port 443.
[Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen on
port 80.
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
http://localhost/dwr-examples/
[Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/webroot/favicon.ico
[Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not exist:
C:/www/webroot/favicon.ico
Where /DWR is a servlet in Tomcat that works properly under port:8080
When I installed this originally I had the same trouble and through great
effort got it working right. Then I built an elaborate webapp and lost the
drive. The
backup I had was only of the webapp and not the server setup, dumb me!
One of the things I thought I had to do for some reason, maybe not related
to this problem, was remove a security rule or two from either apache or
tomcat because it was causing a problem.
I also am getting this from the stdout_.log and don't know if this is
related.
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News /
Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Unfortunatly I don't know much if anything about the security rules? Anyone
see anything that is obviously wrong?
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache mod_jk and Tomcat not working correctly
Posted by Wayne Bragg <wl...@cox.net>.
I got it to work almost with some of these changes. In particular the
JkMount /dwr-examples/* ajp13worker1.
That was the problem.
Now the only thing that is causing a problem are a couple of a policy
violations. This happened before and I had to delete them.
How do I find which ones they are and where they are?
[Mon Oct 27 00:42:31 2008] [error] [client 127.0.0.1] ModSecurity: Warning.
Pattern match
"(?:\\\\b(?:on(?:(?:mo(?:use(?:o(?:ver|ut)|down|move|up)|ve)|key(?:press|down|up)|c(?:hange|lick)|s(?:elec|ubmi)t|(?:un)?load|dragdrop|resize|focus|blur)\\\\b\\\\W*?=|abort\\\\b)|(?:l(?:owsrc\\\\b\\\\W*?\\\\b(?:(?:java|vb)script|shell)|ivescript)|(?:href|url)\\\\b\\\\W*?\\\\b(?:(?:java|vb)script|shell)|mocha):|type\\\\b\\\\W*?\\\\b(?:text\\\\b(?:\\\\W*?\\\\b(?:j(?:ava)?|ecma)script\\\\b|
[vbscript])|application\\\\b\\\\W*?\\\\bx-(?:java|vb)script\\\\b)|s(?:(?:tyle\\\\b\\\\W*=.*\\\\bexpression\\\\b\\\\W*|ettimeout\\\\b\\\\W*?)\\\\(|rc\\\\b\\\\W*?\\\\b(?:(?:java|vb)script|shell|http):)|(?:c(?:opyparentfolder|reatetextrange)|get(?:special|parent)folder|background-image:|@import)\\\\b|a(?:ctivexobject\\\\b|lert\\\\b\\\\W*?\\\\())|<(?:(?:body\\\\b.*?\\\\b(?:backgroun|onloa)d|input\\\\b.*?\\\\btype\\\\b\\\\W*?\\\\bimage)\\\\b|!\\\\[CDATA\\\\[|script|meta)|.(?:(?:execscrip|addimpor)t|(?:fromcharcod|cooki)e|innerhtml)\\\\b)"
at REQUEST_FILENAME. [id "950004"] [msg "Cross-site Scripting (XSS) Attack"]
[severity "CRITICAL"] [hostname "localhost"] [uri "/msgboard/js/cookie.js"]
[unique_id "mOP9TMCoAWUAAAwch@sAAADx"]
[Mon Oct 27 01:06:10 2008] [error] [client 127.0.0.1] ModSecurity: Warning.
Match of "rx
^(?:application/x-www-form-urlencoded|multipart/form-data|text/xml)$"
against "REQUEST_HEADERS:Content-Type" required. [id "960010"] [msg "Request
content encoding is not allowed by policy"] [severity "WARNING"] [hostname
"localhost"] [uri "/dwr-examples/dwr/call/plaincall/Intro.getInsert.dwr"]
[unique_id "7XnhS8CoAWUAAAwciBAAAADz"]
Thanks alot for the help, your masters!
----- Original Message -----
From: "Rainer Jung" <ra...@kippdata.de>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Monday, October 27, 2008 12:07 AM
Subject: Re: Apache mod_jk and Tomcat not working correctly
> Wayne Bragg schrieb:
>> my setup:
>> WinXP Home
>> Wed-Dev install of:
>> Apache/2.2.3 (Win32)
>> Tomcat 5
>> PHP 5.2.0
>
> Before proceeding consider taking more recent minor versions, like
> 2.2.10, PHP 5.2.6 and you didn't tell us your Tomcat version. Your
> mod_jk below is 1.2.19, which is *very* outdated, use 1.2.26.
>
>> I have mod_jk connector set up the following way according to
>> instructions:
>>
>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>>
>> <Directory "/www/tomcat5/webapps/dwr-examples/">
>> Options Indexes FollowSymLinks
>
> If you don't need those options drop them.
>
>> AllowOverride None
>> Order deny,allow
>> Deny from all
>> Allow from all
>>
>> AddType text/html .php .phps
>> AddHandler application/x-httpd-php .php
>> AddHandler application/x-httpd-php-source .phps
>> </Directory>
>>
>> mod_jk setup:
>> LoadModule jk_module modules/mod_jk.so
>>
>> <IfModule jk_module>
>> JkWorkersFile conf/Suite-extra/workers.properties
>
> We don't know the contents of this file.
>
>> JkLogFile logs/mod_jk.log
>> JkLogLevel warn
>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>
> You shouldn't nedd a JkLogStampFormat. Only use it, if you think you
> need it.
>
>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>
> Delete +ForwardURICompat from the list if you are not sure you need it.
>
>> JkRequestLogFormat "%w %V %T"
>
> You should use logging of mod_jk notes in the access log instead.
>
>> <Location /*/WEB-INF/*>
>> # AllowOverride None
>> deny from all
>> </Location>
>>
>> JkMount /dwr-examples/*.jsp ajp13worker1
>> JkMount /dwr-examples/*.jspx ajp13worker1
>
> Your testing URL /dwr-examples/dwr does not match any of those two
> rules, so it won't get send to Tomcat.
>
>> JkUnMount /dwr-examples/*.html ajp13worker1
>> JkUnMount /dwr-examples/*.htm ajp13worker1
>> JkUnMount /dwr-examples/*.png ajp13worker1
>> JkUnMount /dwr-examples/*.jpg ajp13worker1
>> JkUnMount /dwr-examples/*.jpeg ajp13worker1
>> JkUnMount /dwr-examples/*.gif ajp13worker1
>> JkUnMount /dwr-examples/*.ico ajp13worker1
>> JkUnMount /dwr-examples/*.php ajp13worker1
>
> What about
>
> JkMount /dwr-examples/* ajp13worker1
> JkUnMount /*.html ajp13worker1
> JkUnMount /*.htm ajp13worker1
> JkUnMount /*.png ajp13worker1
> JkUnMount /*.jpg ajp13worker1
> JkUnMount /*.jpeg ajp13worker1
> JkUnMount /*.gif ajp13worker1
> JkUnMount /*.ico ajp13worker1
> JkUnMount /*.php ajp13worker1
>
> instead?
>
>> </IfModule>
>>
>> Everthing works using port 8080 but I am getting the following error in
>> the
>> error.log in Apache when I use port
>> 80 ie: http://localhost:8080/dwr-examples/ vs
>> http://localhost/dwr-examples/
>>
>>
>> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
>> configured
>> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
>> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
>> configured -- resuming normal operations
>> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
>> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
>> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
>> configured
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker
>> threads.
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen
>> on
>> port 443.
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen
>> on
>> port 80.
>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>> http://localhost/dwr-examples/
>
> Your request seems to be answered with a redirect to dwr-examples/dwr,
> which is not contained in your forward rules.
>
>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>> http://localhost/dwr-examples/
>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>> http://localhost/dwr-examples/
>> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/webroot/favicon.ico
>> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/webroot/favicon.ico
>>
>> Where /DWR is a servlet in Tomcat that works properly under port:8080
>
> Be careful, URLs are case-sensitive. From the above it seems to be
> /dwr-examples/dwr. In case it still doesn't work with the fixed
> Jk(Un)Mounts, please set JkLogLevel to debug, retry one request and post
> the JK log file.
>
> Regards,
>
> Rainer
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date: 10/26/2008
7:53 PM
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache mod_jk and Tomcat not working correctly
Posted by Rainer Jung <ra...@kippdata.de>.
Wayne Bragg schrieb:
> my setup:
> WinXP Home
> Wed-Dev install of:
> Apache/2.2.3 (Win32)
> Tomcat 5
> PHP 5.2.0
Before proceeding consider taking more recent minor versions, like
2.2.10, PHP 5.2.6 and you didn't tell us your Tomcat version. Your
mod_jk below is 1.2.19, which is *very* outdated, use 1.2.26.
> I have mod_jk connector set up the following way according to
> instructions:
>
> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>
> <Directory "/www/tomcat5/webapps/dwr-examples/">
> Options Indexes FollowSymLinks
If you don't need those options drop them.
> AllowOverride None
> Order deny,allow
> Deny from all
> Allow from all
>
> AddType text/html .php .phps
> AddHandler application/x-httpd-php .php
> AddHandler application/x-httpd-php-source .phps
> </Directory>
>
> mod_jk setup:
> LoadModule jk_module modules/mod_jk.so
>
> <IfModule jk_module>
> JkWorkersFile conf/Suite-extra/workers.properties
We don't know the contents of this file.
> JkLogFile logs/mod_jk.log
> JkLogLevel warn
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
You shouldn't nedd a JkLogStampFormat. Only use it, if you think you
need it.
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
Delete +ForwardURICompat from the list if you are not sure you need it.
> JkRequestLogFormat "%w %V %T"
You should use logging of mod_jk notes in the access log instead.
> <Location /*/WEB-INF/*>
> # AllowOverride None
> deny from all
> </Location>
>
> JkMount /dwr-examples/*.jsp ajp13worker1
> JkMount /dwr-examples/*.jspx ajp13worker1
Your testing URL /dwr-examples/dwr does not match any of those two
rules, so it won't get send to Tomcat.
> JkUnMount /dwr-examples/*.html ajp13worker1
> JkUnMount /dwr-examples/*.htm ajp13worker1
> JkUnMount /dwr-examples/*.png ajp13worker1
> JkUnMount /dwr-examples/*.jpg ajp13worker1
> JkUnMount /dwr-examples/*.jpeg ajp13worker1
> JkUnMount /dwr-examples/*.gif ajp13worker1
> JkUnMount /dwr-examples/*.ico ajp13worker1
> JkUnMount /dwr-examples/*.php ajp13worker1
What about
JkMount /dwr-examples/* ajp13worker1
JkUnMount /*.html ajp13worker1
JkUnMount /*.htm ajp13worker1
JkUnMount /*.png ajp13worker1
JkUnMount /*.jpg ajp13worker1
JkUnMount /*.jpeg ajp13worker1
JkUnMount /*.gif ajp13worker1
JkUnMount /*.ico ajp13worker1
JkUnMount /*.php ajp13worker1
instead?
> </IfModule>
>
> Everthing works using port 8080 but I am getting the following error in the
> error.log in Apache when I use port
> 80 ie: http://localhost:8080/dwr-examples/ vs
> http://localhost/dwr-examples/
>
>
> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4 configured
> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
> configured -- resuming normal operations
> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4 configured
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker threads.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen on
> port 443.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen on
> port 80.
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
Your request seems to be answered with a redirect to dwr-examples/dwr,
which is not contained in your forward rules.
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/webroot/favicon.ico
> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/webroot/favicon.ico
>
> Where /DWR is a servlet in Tomcat that works properly under port:8080
Be careful, URLs are case-sensitive. From the above it seems to be
/dwr-examples/dwr. In case it still doesn't work with the fixed
Jk(Un)Mounts, please set JkLogLevel to debug, retry one request and post
the JK log file.
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache mod_jk and Tomcat not working correctly
Posted by Wayne Bragg <wl...@cox.net>.
Confirmed!
----- Original Message -----
From: "Martin Gainty" <mg...@hotmail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Sunday, October 26, 2008 5:41 PM
Subject: RE: Apache mod_jk and Tomcat not working correctly
Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
Listen 80
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission.
> From: wlbragg@cox.net
> To: users@tomcat.apache.org
> Subject: Apache mod_jk and Tomcat not working correctly
> Date: Sun, 26 Oct 2008 17:17:13 -0500
>
> my setup:
> WinXP Home
> Wed-Dev install of:
> Apache/2.2.3 (Win32)
> Tomcat 5
> PHP 5.2.0
>
> I have mod_jk connector set up the following way according to
> instructions:
>
> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>
> <Directory "/www/tomcat5/webapps/dwr-examples/">
> Options Indexes FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> Allow from all
>
> AddType text/html .php .phps
> AddHandler application/x-httpd-php .php
> AddHandler application/x-httpd-php-source .phps
> </Directory>
>
> mod_jk setup:
> LoadModule jk_module modules/mod_jk.so
>
> <IfModule jk_module>
> JkWorkersFile conf/Suite-extra/workers.properties
> JkLogFile logs/mod_jk.log
> JkLogLevel warn
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat "%w %V %T"
>
> <Location /*/WEB-INF/*>
> # AllowOverride None
> deny from all
> </Location>
>
> JkMount /dwr-examples/*.jsp ajp13worker1
> JkMount /dwr-examples/*.jspx ajp13worker1
> JkUnMount /dwr-examples/*.html ajp13worker1
> JkUnMount /dwr-examples/*.htm ajp13worker1
> JkUnMount /dwr-examples/*.png ajp13worker1
> JkUnMount /dwr-examples/*.jpg ajp13worker1
> JkUnMount /dwr-examples/*.jpeg ajp13worker1
> JkUnMount /dwr-examples/*.gif ajp13worker1
> JkUnMount /dwr-examples/*.ico ajp13worker1
> JkUnMount /dwr-examples/*.php ajp13worker1
>
> </IfModule>
>
> Everthing works using port 8080 but I am getting the following error in
> the
> error.log in Apache when I use port
> 80 ie: http://localhost:8080/dwr-examples/ vs
> http://localhost/dwr-examples/
>
>
> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
> configured
> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
> configured -- resuming normal operations
> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
> configured
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker
> threads.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen
> on
> port 443.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen
> on
> port 80.
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/webroot/favicon.ico
> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/webroot/favicon.ico
>
> Where /DWR is a servlet in Tomcat that works properly under port:8080
>
> When I installed this originally I had the same trouble and through great
> effort got it working right. Then I built an elaborate webapp and lost the
> drive. The
> backup I had was only of the webapp and not the server setup, dumb me!
>
> One of the things I thought I had to do for some reason, maybe not related
> to this problem, was remove a security rule or two from either apache or
> tomcat because it was causing a problem.
> I also am getting this from the stdout_.log and don't know if this is
> related.
>
> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> [org.apache.webapp.balancer.RuleChain:
> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News
> /
> Redirect URL: http://www.cnn.com],
> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
> paramName / Target param value: paramValue / Redirect URL:
> http://www.yahoo.com],
> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> http://jakarta.apache.org]]
>
> Unfortunatly I don't know much if anything about the security rules?
> Anyone
> see anything that is obviously wrong?
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
_________________________________________________________________
Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date: 10/26/2008
9:27 AM
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache mod_jk and Tomcat not working correctly
Posted by Wayne Bragg <wl...@cox.net>.
I accidentally hijacked another thread with the following question that
applies to this thread, SORRY!
I think when I fried my hard drive it also got me!
Can anyone tell me where to find the rule causing this problem?
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
[org.apache.webapp.balancer.RuleChain:
[org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News /
Redirect URL: http://www.cnn.com],
[org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
paramName / Target param value: paramValue / Redirect URL:
http://www.yahoo.com],
[org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
http://jakarta.apache.org]]
Apologies to the hijacked thread!
Thx
----- Original Message -----
From: "Wayne Bragg" <wl...@cox.net>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Sunday, October 26, 2008 5:48 PM
Subject: Re: Apache mod_jk and Tomcat not working correctly
>I guess I need to add, going through http port 80 works with no errors for
> everything except .jsp to tomcat
>
> ----- Original Message -----
> From: "Martin Gainty" <mg...@hotmail.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Sunday, October 26, 2008 5:41 PM
> Subject: RE: Apache mod_jk and Tomcat not working correctly
>
>
>
> Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
> Listen 80
>
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
>
>> From: wlbragg@cox.net
>> To: users@tomcat.apache.org
>> Subject: Apache mod_jk and Tomcat not working correctly
>> Date: Sun, 26 Oct 2008 17:17:13 -0500
>>
>> my setup:
>> WinXP Home
>> Wed-Dev install of:
>> Apache/2.2.3 (Win32)
>> Tomcat 5
>> PHP 5.2.0
>>
>> I have mod_jk connector set up the following way according to
>> instructions:
>>
>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>>
>> <Directory "/www/tomcat5/webapps/dwr-examples/">
>> Options Indexes FollowSymLinks
>> AllowOverride None
>> Order deny,allow
>> Deny from all
>> Allow from all
>>
>> AddType text/html .php .phps
>> AddHandler application/x-httpd-php .php
>> AddHandler application/x-httpd-php-source .phps
>> </Directory>
>>
>> mod_jk setup:
>> LoadModule jk_module modules/mod_jk.so
>>
>> <IfModule jk_module>
>> JkWorkersFile conf/Suite-extra/workers.properties
>> JkLogFile logs/mod_jk.log
>> JkLogLevel warn
>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>> JkRequestLogFormat "%w %V %T"
>>
>> <Location /*/WEB-INF/*>
>> # AllowOverride None
>> deny from all
>> </Location>
>>
>> JkMount /dwr-examples/*.jsp ajp13worker1
>> JkMount /dwr-examples/*.jspx ajp13worker1
>> JkUnMount /dwr-examples/*.html ajp13worker1
>> JkUnMount /dwr-examples/*.htm ajp13worker1
>> JkUnMount /dwr-examples/*.png ajp13worker1
>> JkUnMount /dwr-examples/*.jpg ajp13worker1
>> JkUnMount /dwr-examples/*.jpeg ajp13worker1
>> JkUnMount /dwr-examples/*.gif ajp13worker1
>> JkUnMount /dwr-examples/*.ico ajp13worker1
>> JkUnMount /dwr-examples/*.php ajp13worker1
>>
>> </IfModule>
>>
>> Everthing works using port 8080 but I am getting the following error in
>> the
>> error.log in Apache when I use port
>> 80 ie: http://localhost:8080/dwr-examples/ vs
>> http://localhost/dwr-examples/
>>
>>
>> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
>> configured
>> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
>> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
>> configured -- resuming normal operations
>> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
>> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
>> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
>> configured
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker
>> threads.
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen
>> on
>> port 443.
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen
>> on
>> port 80.
>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>> http://localhost/dwr-examples/
>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>> http://localhost/dwr-examples/
>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>> http://localhost/dwr-examples/
>> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/webroot/favicon.ico
>> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/webroot/favicon.ico
>>
>> Where /DWR is a servlet in Tomcat that works properly under port:8080
>>
>> When I installed this originally I had the same trouble and through great
>> effort got it working right. Then I built an elaborate webapp and lost
>> the
>> drive. The
>> backup I had was only of the webapp and not the server setup, dumb me!
>>
>> One of the things I thought I had to do for some reason, maybe not
>> related
>> to this problem, was remove a security rule or two from either apache or
>> tomcat because it was causing a problem.
>> I also am getting this from the stdout_.log and don't know if this is
>> related.
>>
>> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
>> [org.apache.webapp.balancer.RuleChain:
>> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News
>> /
>> Redirect URL: http://www.cnn.com],
>> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
>> name:
>> paramName / Target param value: paramValue / Redirect URL:
>> http://www.yahoo.com],
>> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
>> http://jakarta.apache.org]]
>>
>> Unfortunatly I don't know much if anything about the security rules?
>> Anyone
>> see anything that is obviously wrong?
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
> _________________________________________________________________
> Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
> http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
>
>
> --------------------------------------------------------------------------------
>
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date: 10/26/2008
> 9:27 AM
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date: 10/26/2008
9:27 AM
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Apache mod_jk and Tomcat not working correctly
Posted by Martin Gainty <mg...@hotmail.com>.
no problem as long as you can be extremely specific on what you have and where it will be implemented
(DWR is a Bean Server technology from Joe Walker but probably wont help for this implementation...)
start with the php part..if you want to use the php binary start with a Handler configuration in Apache
$APACHE_HOME/conf/httpd.conf
AddHandler cgi-script .php
Options FollowSymLinks +ExecCGI
Options +ExecCGI
and the test page looks something like
#!$PHP_INFO/php.exe
<?php
phpinfo();
?>
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> From: wlbragg@cox.net
> To: users@tomcat.apache.org
> Subject: Re: Apache mod_jk and Tomcat not working correctly
> Date: Sun, 26 Oct 2008 19:18:49 -0500
>
> Apache is suppose to serve /dwr-examples and /dwr-examples/dwr just not any
> jsp or jspx that is called for
>
> > Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
> > also covers URLs like "/dwr-examples/dwr", and so it is Apache trying to
> > serve it, it is never re-directed to Tomcat by mod_jk, it does not even
> > get that far.
>
> I kind of get what you are saying and will try
>
> > AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
> > /www/tomcat5/webapps/dwr-examples/$1
> >
> > (I put html?|jog|php .. because I don't remember how to say "not .jsp")
>
> but the alias structure I posted is the way I always had it and it worked,
> but not before I made some other fixes that I don't remember.
>
> I'm not quite understanding what you want me to try though.
> Do you mean get rid of the current Alias code and replace it with
>
> AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
> /www/tomcat5/webapps/dwr-examples/$1
>
> or use it in addition to it and where exactly should it go?
> Prior to the JkMount /dwr-examples/*.jsp ajp13worker1
>
> Forgive me for being so dense but this is new to me!
>
> ----- Original Message -----
> From: "André Warnier" <aw...@ice-sa.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Sunday, October 26, 2008 6:36 PM
> Subject: Re: Apache mod_jk and Tomcat not working correctly
>
>
> >I think your Alias at the beginning has "more priority" than your
> > JkMount later.
> > Not that the order in the config file matters, that's not what I mean.
> > What I mean is :
> > Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
> > also covers URLs like "/dwr-examples/dwr", and so it is Apache trying to
> > serve it, it is never re-directed to Tomcat by mod_jk, it does not even
> > get that far.
> > Try maybe (one line)
> > AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
> > /www/tomcat5/webapps/dwr-examples/$1
> >
> > (I put html?|jog|php .. because I don't remember how to say "not .jsp")
> >
> >
> > Wayne Bragg wrote:
> >> I guess I need to add, going through http port 80 works with no errors
> >> for everything except .jsp to tomcat
> >>
> >> ----- Original Message ----- From: "Martin Gainty" <mg...@hotmail.com>
> >> To: "Tomcat Users List" <us...@tomcat.apache.org>
> >> Sent: Sunday, October 26, 2008 5:41 PM
> >> Subject: RE: Apache mod_jk and Tomcat not working correctly
> >>
> >>
> >>
> >> Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
> >> Listen 80
> >>
> >> Martin
> >> ______________________________________________
> >> Disclaimer and confidentiality note
> >> Everything in this e-mail and any attachments relates to the official
> >> business of Sender. This transmission is of a confidential nature and
> >> Sender does not endorse distribution to any party other than intended
> >> recipient. Sender does not necessarily endorse content contained within
> >> this transmission.
> >>
> >>
> >>> From: wlbragg@cox.net
> >>> To: users@tomcat.apache.org
> >>> Subject: Apache mod_jk and Tomcat not working correctly
> >>> Date: Sun, 26 Oct 2008 17:17:13 -0500
> >>>
> >>> my setup:
> >>> WinXP Home
> >>> Wed-Dev install of:
> >>> Apache/2.2.3 (Win32)
> >>> Tomcat 5
> >>> PHP 5.2.0
> >>>
> >>> I have mod_jk connector set up the following way according to
> >>> instructions:
> >>>
> >>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
> >>>
> >>> <Directory "/www/tomcat5/webapps/dwr-examples/">
> >>> Options Indexes FollowSymLinks
> >>> AllowOverride None
> >>> Order deny,allow
> >>> Deny from all
> >>> Allow from all
> >>>
> >>> AddType text/html .php .phps
> >>> AddHandler application/x-httpd-php .php
> >>> AddHandler application/x-httpd-php-source .phps
> >>> </Directory>
> >>>
> >>> mod_jk setup:
> >>> LoadModule jk_module modules/mod_jk.so
> >>>
> >>> <IfModule jk_module>
> >>> JkWorkersFile conf/Suite-extra/workers.properties
> >>> JkLogFile logs/mod_jk.log
> >>> JkLogLevel warn
> >>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> >>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> >>> JkRequestLogFormat "%w %V %T"
> >>>
> >>> <Location /*/WEB-INF/*>
> >>> # AllowOverride None
> >>> deny from all
> >>> </Location>
> >>>
> >>> JkMount /dwr-examples/*.jsp ajp13worker1
> >>> JkMount /dwr-examples/*.jspx ajp13worker1
> >>> JkUnMount /dwr-examples/*.html ajp13worker1
> >>> JkUnMount /dwr-examples/*.htm ajp13worker1
> >>> JkUnMount /dwr-examples/*.png ajp13worker1
> >>> JkUnMount /dwr-examples/*.jpg ajp13worker1
> >>> JkUnMount /dwr-examples/*.jpeg ajp13worker1
> >>> JkUnMount /dwr-examples/*.gif ajp13worker1
> >>> JkUnMount /dwr-examples/*.ico ajp13worker1
> >>> JkUnMount /dwr-examples/*.php ajp13worker1
> >>>
> >>> </IfModule>
> >>>
> >>> Everthing works using port 8080 but I am getting the following error
> >>> in the
> >>> error.log in Apache when I use port
> >>> 80 ie: http://localhost:8080/dwr-examples/ vs
> >>> http://localhost/dwr-examples/
> >>>
> >>>
> >>> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
> >>> configured
> >>> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
> >>> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev
> >>> Perl/v5.8.8
> >>> configured -- resuming normal operations
> >>> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
> >>> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
> >>> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
> >>> configured
> >>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
> >>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
> >>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker
> >>> threads.
> >>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to
> >>> listen on
> >>> port 443.
> >>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to
> >>> listen on
> >>> port 80.
> >>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
> >>> exist:
> >>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> >>> http://localhost/dwr-examples/
> >>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
> >>> exist:
> >>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> >>> http://localhost/dwr-examples/
> >>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
> >>> exist:
> >>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> >>> http://localhost/dwr-examples/
> >>> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not
> >>> exist:
> >>> C:/www/webroot/favicon.ico
> >>> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not
> >>> exist:
> >>> C:/www/webroot/favicon.ico
> >>>
> >>> Where /DWR is a servlet in Tomcat that works properly under port:8080
> >>>
> >>> When I installed this originally I had the same trouble and through
> >>> great
> >>> effort got it working right. Then I built an elaborate webapp and lost
> >>> the
> >>> drive. The
> >>> backup I had was only of the webapp and not the server setup, dumb me!
> >>>
> >>> One of the things I thought I had to do for some reason, maybe not
> >>> related
> >>> to this problem, was remove a security rule or two from either apache or
> >>> tomcat because it was causing a problem.
> >>> I also am getting this from the stdout_.log and don't know if this is
> >>> related.
> >>>
> >>> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> >>> [org.apache.webapp.balancer.RuleChain:
> >>> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
> >>> News /
> >>> Redirect URL: http://www.cnn.com],
> >>> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
> >>> name:
> >>> paramName / Target param value: paramValue / Redirect URL:
> >>> http://www.yahoo.com],
> >>> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> >>> http://jakarta.apache.org]]
> >>>
> >>> Unfortunatly I don't know much if anything about the security rules?
> >>> Anyone
> >>> see anything that is obviously wrong?
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To start a new topic, e-mail: users@tomcat.apache.org
> >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >>> For additional commands, e-mail: users-help@tomcat.apache.org
> >>>
> >>
> >> _________________________________________________________________
> >> Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
> >> http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
> >>
> >>
> >>
> >> --------------------------------------------------------------------------------
> >>
> >>
> >>
> >>
> >> No virus found in this incoming message.
> >> Checked by AVG - http://www.avg.com
> >> Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date:
> >> 10/26/2008 9:27 AM
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To start a new topic, e-mail: users@tomcat.apache.org
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
>
>
> --------------------------------------------------------------------------------
>
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date: 10/26/2008
> 7:53 PM
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
_________________________________________________________________
Store, manage and share up to 5GB with Windows Live SkyDrive.
http://skydrive.live.com/welcome.aspx?provision=1?ocid=TXT_TAGLM_WL_skydrive_102008
Re: Apache mod_jk and Tomcat not working correctly
Posted by Wayne Bragg <wl...@cox.net>.
Your both right. It's fixed and working now. One other thing for reference
purposes. There are a couple default policies in Apache that cause DWR to
malfunction. I was able to locate them and commented them out. It may be one
or both of the following policies.
##SecRule REQUEST_METHOD "!^(?:GET|HEAD)$" "chain,
deny,log,status:501,id:960010,severity:4,msg:'Request content encoding is
not allowed by policy'"
##SecRule HTTP_Content-Type
"!^(?:application/x-www-form-urlencoded|multipart/form-data|text/xml)$"
and/or
##SecRule REQUEST_METHOD "!^(?:GET|HEAD)$" "chain,
deny,log,status:501,id:960010,severity:4,msg:'Request content encoding is
not allowed by policy'"
##SecRule HTTP_Content-Type
"!^(?:application/x-www-form-urlencoded|multipart/form-data|text/xml)$"
I didn't check for sure which one is causing the problem with dwr because
they were both causing errors in my log.
So as far as i am concerned the problem was solved.
Thank you to everyone that help me!
----- Original Message -----
From: "André Warnier" <aw...@ice-sa.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Monday, October 27, 2008 3:20 AM
Subject: Re: Apache mod_jk and Tomcat not working correctly
> Hi.
> Forget my earlier response, and look at Rainer's.
> He spotted what I did not, in your JkMount.
> You don't have any JkMount that will match /dwr-examples/dwr, and that
> is the problem.
> But go back, read Rainer's answer, do the different things that he says
> (cleaning up mostly), and read the stuff below if you still do not get it.
>
>
> the Why :
>
> When Apache gets asked for a URL, and it realises that this URL
> corresponds to a directory (not a file), it will :
> - try and locate, in that directory, a document that matches one of the
> ones indicated in its "DirectoryIndex" directive. If it finds one, it
> will return it to the browser, and he's done.
> - if it doesn't, it will look if he's authorised to create himself a
> directory list of files (Options Indexes). If he is, he will create
> such a document, send it back to the browser, and he's done.
> - if the above all fails, Apache returns a "not found" error.
> That's a bit simplified, but it's the idea.
>
> What probably happens in your case :
> 1) You enter the URL "http://localhost/dwr-examples/"
> 2) Apache gets this request, and tries to match /dwr-examples/ with all
> your Alias and JkMount directives.
> 3) It does not find a match with JkMount, but finds a match with your
> Alias directive :
> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
> 4) So it serves this content itself. It looks in
> "/www/tomcat5/webapps/dwr-examples/" to find a "DirectoryIndex" file
> (you did not say what you put there). Suppose it finds one there,
> called "index.html". It sends it to the browser and he's done.
> 5) Now something in this file tells the browser to load the page
> "http://localhost/dwr-examples/dwr", so it does.
> (I am guessing here, but you should be able to see what happens, in
> sequence, in your Apache access log)
> 6) Apache gets this new request (for "/dwr-examples/dwr"), and starts
> again trying to match it with Alias and JkMount. It again does not
> match any JkMount, but it does match the same Alias as before, so Apache
> tries to serve this new request from the directory
> "/www/tomcat5/webapps/dwr-examples/" (loking for "dwr" in there).
> 7) It does not find anything there called "dwr", so it returns the error
> you are seeing in the log.
>
> By doing what Rainer is recommending :
> JkMount /dwr-examples/* workername
> and then "un-mounting" selected parts of that, like
> JkUnMount /dwr-examples/*.html workername
> ...
> you avoid the above, because your call to
> "/dwr-examples/dwr" will now match the first JkMount, so it will be
> re-directed to Tomcat (and Apache will not try to do it itself), and
> Tomcat (presumably) knows what to do with "/dwr-examples/dwr".
>
>
>
>
>
> Wayne Bragg wrote:
>> Apache is suppose to serve /dwr-examples and /dwr-examples/dwr just not
>> any jsp or jspx that is called for
>>
>>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>>> also covers URLs like "/dwr-examples/dwr", and so it is Apache trying to
>>> serve it, it is never re-directed to Tomcat by mod_jk, it does not even
>>> get that far.
>>
>> I kind of get what you are saying and will try
>>
>>> AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
>>> /www/tomcat5/webapps/dwr-examples/$1
>>>
>>> (I put html?|jog|php .. because I don't remember how to say "not .jsp")
>>
>> but the alias structure I posted is the way I always had it and it
>> worked, but not before I made some other fixes that I don't remember.
>>
>> I'm not quite understanding what you want me to try though.
>> Do you mean get rid of the current Alias code and replace it with
>>
>> AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
>> /www/tomcat5/webapps/dwr-examples/$1
>>
>> or use it in addition to it and where exactly should it go?
>> Prior to the JkMount /dwr-examples/*.jsp ajp13worker1
>>
>> Forgive me for being so dense but this is new to me!
>>
>> ----- Original Message ----- From: "André Warnier" <aw...@ice-sa.com>
>> To: "Tomcat Users List" <us...@tomcat.apache.org>
>> Sent: Sunday, October 26, 2008 6:36 PM
>> Subject: Re: Apache mod_jk and Tomcat not working correctly
>>
>>
>>> I think your Alias at the beginning has "more priority" than your
>>> JkMount later.
>>> Not that the order in the config file matters, that's not what I mean.
>>> What I mean is :
>>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>>> also covers URLs like "/dwr-examples/dwr", and so it is Apache trying to
>>> serve it, it is never re-directed to Tomcat by mod_jk, it does not even
>>> get that far.
>>> Try maybe (one line)
>>> AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
>>> /www/tomcat5/webapps/dwr-examples/$1
>>>
>>> (I put html?|jog|php .. because I don't remember how to say "not .jsp")
>>>
>>>
>>> Wayne Bragg wrote:
>>>> I guess I need to add, going through http port 80 works with no errors
>>>> for everything except .jsp to tomcat
>>>>
>>>> ----- Original Message ----- From: "Martin Gainty"
>>>> <mg...@hotmail.com>
>>>> To: "Tomcat Users List" <us...@tomcat.apache.org>
>>>> Sent: Sunday, October 26, 2008 5:41 PM
>>>> Subject: RE: Apache mod_jk and Tomcat not working correctly
>>>>
>>>>
>>>>
>>>> Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
>>>> Listen 80
>>>>
>>>> Martin
>>>> ______________________________________________
>>>> Disclaimer and confidentiality note
>>>> Everything in this e-mail and any attachments relates to the official
>>>> business of Sender. This transmission is of a confidential nature and
>>>> Sender does not endorse distribution to any party other than intended
>>>> recipient. Sender does not necessarily endorse content contained within
>>>> this transmission.
>>>>
>>>>
>>>>> From: wlbragg@cox.net
>>>>> To: users@tomcat.apache.org
>>>>> Subject: Apache mod_jk and Tomcat not working correctly
>>>>> Date: Sun, 26 Oct 2008 17:17:13 -0500
>>>>>
>>>>> my setup:
>>>>> WinXP Home
>>>>> Wed-Dev install of:
>>>>> Apache/2.2.3 (Win32)
>>>>> Tomcat 5
>>>>> PHP 5.2.0
>>>>>
>>>>> I have mod_jk connector set up the following way according to
>>>>> instructions:
>>>>>
>>>>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>>>>>
>>>>> <Directory "/www/tomcat5/webapps/dwr-examples/">
>>>>> Options Indexes FollowSymLinks
>>>>> AllowOverride None
>>>>> Order deny,allow
>>>>> Deny from all
>>>>> Allow from all
>>>>>
>>>>> AddType text/html .php .phps
>>>>> AddHandler application/x-httpd-php .php
>>>>> AddHandler application/x-httpd-php-source .phps
>>>>> </Directory>
>>>>>
>>>>> mod_jk setup:
>>>>> LoadModule jk_module modules/mod_jk.so
>>>>>
>>>>> <IfModule jk_module>
>>>>> JkWorkersFile conf/Suite-extra/workers.properties
>>>>> JkLogFile logs/mod_jk.log
>>>>> JkLogLevel warn
>>>>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>>>>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>>>>> JkRequestLogFormat "%w %V %T"
>>>>>
>>>>> <Location /*/WEB-INF/*>
>>>>> # AllowOverride None
>>>>> deny from all
>>>>> </Location>
>>>>>
>>>>> JkMount /dwr-examples/*.jsp ajp13worker1
>>>>> JkMount /dwr-examples/*.jspx ajp13worker1
>>>>> JkUnMount /dwr-examples/*.html ajp13worker1
>>>>> JkUnMount /dwr-examples/*.htm ajp13worker1
>>>>> JkUnMount /dwr-examples/*.png ajp13worker1
>>>>> JkUnMount /dwr-examples/*.jpg ajp13worker1
>>>>> JkUnMount /dwr-examples/*.jpeg ajp13worker1
>>>>> JkUnMount /dwr-examples/*.gif ajp13worker1
>>>>> JkUnMount /dwr-examples/*.ico ajp13worker1
>>>>> JkUnMount /dwr-examples/*.php ajp13worker1
>>>>>
>>>>> </IfModule>
>>>>>
>>>>> Everthing works using port 8080 but I am getting the following error
>>>>> in the
>>>>> error.log in Apache when I use port
>>>>> 80 ie: http://localhost:8080/dwr-examples/ vs
>>>>> http://localhost/dwr-examples/
>>>>>
>>>>>
>>>>> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
>>>>> configured
>>>>> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
>>>>> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev
>>>>> Perl/v5.8.8
>>>>> configured -- resuming normal operations
>>>>> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
>>>>> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
>>>>> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
>>>>> configured
>>>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is
>>>>> running
>>>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start
>>>>> mutex.
>>>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker
>>>>> threads.
>>>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to
>>>>> listen on
>>>>> port 443.
>>>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to
>>>>> listen on
>>>>> port 80.
>>>>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>>>>> exist:
>>>>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>>>>> http://localhost/dwr-examples/
>>>>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>>>>> exist:
>>>>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>>>>> http://localhost/dwr-examples/
>>>>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>>>>> exist:
>>>>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>>>>> http://localhost/dwr-examples/
>>>>> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not
>>>>> exist:
>>>>> C:/www/webroot/favicon.ico
>>>>> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not
>>>>> exist:
>>>>> C:/www/webroot/favicon.ico
>>>>>
>>>>> Where /DWR is a servlet in Tomcat that works properly under port:8080
>>>>>
>>>>> When I installed this originally I had the same trouble and through
>>>>> great
>>>>> effort got it working right. Then I built an elaborate webapp and lost
>>>>> the
>>>>> drive. The
>>>>> backup I had was only of the webapp and not the server setup, dumb me!
>>>>>
>>>>> One of the things I thought I had to do for some reason, maybe not
>>>>> related
>>>>> to this problem, was remove a security rule or two from either
>>>>> apache or
>>>>> tomcat because it was causing a problem.
>>>>> I also am getting this from the stdout_.log and don't know if this is
>>>>> related.
>>>>>
>>>>> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
>>>>> [org.apache.webapp.balancer.RuleChain:
>>>>> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
>>>>> News /
>>>>> Redirect URL: http://www.cnn.com],
>>>>> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
>>>>> name:
>>>>> paramName / Target param value: paramValue / Redirect URL:
>>>>> http://www.yahoo.com],
>>>>> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
>>>>> http://jakarta.apache.org]]
>>>>>
>>>>> Unfortunatly I don't know much if anything about the security rules?
>>>>> Anyone
>>>>> see anything that is obviously wrong?
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To start a new topic, e-mail: users@tomcat.apache.org
>>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>>
>>>>
>>>> _________________________________________________________________
>>>> Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
>>>> http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
>>>>
>>>>
>>>>
>>>>
>>>> --------------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> No virus found in this incoming message.
>>>> Checked by AVG - http://www.avg.com
>>>> Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date:
>>>> 10/26/2008 9:27 AM
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To start a new topic, e-mail: users@tomcat.apache.org
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>>
>> --------------------------------------------------------------------------------
>>
>>
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com
>> Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date:
>> 10/26/2008 7:53 PM
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date: 10/26/2008
7:53 PM
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache mod_jk and Tomcat not working correctly
Posted by André Warnier <aw...@ice-sa.com>.
Hi.
Forget my earlier response, and look at Rainer's.
He spotted what I did not, in your JkMount.
You don't have any JkMount that will match /dwr-examples/dwr, and that
is the problem.
But go back, read Rainer's answer, do the different things that he says
(cleaning up mostly), and read the stuff below if you still do not get it.
the Why :
When Apache gets asked for a URL, and it realises that this URL
corresponds to a directory (not a file), it will :
- try and locate, in that directory, a document that matches one of the
ones indicated in its "DirectoryIndex" directive. If it finds one, it
will return it to the browser, and he's done.
- if it doesn't, it will look if he's authorised to create himself a
directory list of files (Options Indexes). If he is, he will create
such a document, send it back to the browser, and he's done.
- if the above all fails, Apache returns a "not found" error.
That's a bit simplified, but it's the idea.
What probably happens in your case :
1) You enter the URL "http://localhost/dwr-examples/"
2) Apache gets this request, and tries to match /dwr-examples/ with all
your Alias and JkMount directives.
3) It does not find a match with JkMount, but finds a match with your
Alias directive :
Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
4) So it serves this content itself. It looks in
"/www/tomcat5/webapps/dwr-examples/" to find a "DirectoryIndex" file
(you did not say what you put there). Suppose it finds one there,
called "index.html". It sends it to the browser and he's done.
5) Now something in this file tells the browser to load the page
"http://localhost/dwr-examples/dwr", so it does.
(I am guessing here, but you should be able to see what happens, in
sequence, in your Apache access log)
6) Apache gets this new request (for "/dwr-examples/dwr"), and starts
again trying to match it with Alias and JkMount. It again does not
match any JkMount, but it does match the same Alias as before, so Apache
tries to serve this new request from the directory
"/www/tomcat5/webapps/dwr-examples/" (loking for "dwr" in there).
7) It does not find anything there called "dwr", so it returns the error
you are seeing in the log.
By doing what Rainer is recommending :
JkMount /dwr-examples/* workername
and then "un-mounting" selected parts of that, like
JkUnMount /dwr-examples/*.html workername
...
you avoid the above, because your call to
"/dwr-examples/dwr" will now match the first JkMount, so it will be
re-directed to Tomcat (and Apache will not try to do it itself), and
Tomcat (presumably) knows what to do with "/dwr-examples/dwr".
Wayne Bragg wrote:
> Apache is suppose to serve /dwr-examples and /dwr-examples/dwr just not
> any jsp or jspx that is called for
>
>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>> also covers URLs like "/dwr-examples/dwr", and so it is Apache trying to
>> serve it, it is never re-directed to Tomcat by mod_jk, it does not even
>> get that far.
>
> I kind of get what you are saying and will try
>
>> AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
>> /www/tomcat5/webapps/dwr-examples/$1
>>
>> (I put html?|jog|php .. because I don't remember how to say "not .jsp")
>
> but the alias structure I posted is the way I always had it and it
> worked, but not before I made some other fixes that I don't remember.
>
> I'm not quite understanding what you want me to try though.
> Do you mean get rid of the current Alias code and replace it with
>
> AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
> /www/tomcat5/webapps/dwr-examples/$1
>
> or use it in addition to it and where exactly should it go?
> Prior to the JkMount /dwr-examples/*.jsp ajp13worker1
>
> Forgive me for being so dense but this is new to me!
>
> ----- Original Message ----- From: "André Warnier" <aw...@ice-sa.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Sunday, October 26, 2008 6:36 PM
> Subject: Re: Apache mod_jk and Tomcat not working correctly
>
>
>> I think your Alias at the beginning has "more priority" than your
>> JkMount later.
>> Not that the order in the config file matters, that's not what I mean.
>> What I mean is :
>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>> also covers URLs like "/dwr-examples/dwr", and so it is Apache trying to
>> serve it, it is never re-directed to Tomcat by mod_jk, it does not even
>> get that far.
>> Try maybe (one line)
>> AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
>> /www/tomcat5/webapps/dwr-examples/$1
>>
>> (I put html?|jog|php .. because I don't remember how to say "not .jsp")
>>
>>
>> Wayne Bragg wrote:
>>> I guess I need to add, going through http port 80 works with no errors
>>> for everything except .jsp to tomcat
>>>
>>> ----- Original Message ----- From: "Martin Gainty" <mg...@hotmail.com>
>>> To: "Tomcat Users List" <us...@tomcat.apache.org>
>>> Sent: Sunday, October 26, 2008 5:41 PM
>>> Subject: RE: Apache mod_jk and Tomcat not working correctly
>>>
>>>
>>>
>>> Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
>>> Listen 80
>>>
>>> Martin
>>> ______________________________________________
>>> Disclaimer and confidentiality note
>>> Everything in this e-mail and any attachments relates to the official
>>> business of Sender. This transmission is of a confidential nature and
>>> Sender does not endorse distribution to any party other than intended
>>> recipient. Sender does not necessarily endorse content contained within
>>> this transmission.
>>>
>>>
>>>> From: wlbragg@cox.net
>>>> To: users@tomcat.apache.org
>>>> Subject: Apache mod_jk and Tomcat not working correctly
>>>> Date: Sun, 26 Oct 2008 17:17:13 -0500
>>>>
>>>> my setup:
>>>> WinXP Home
>>>> Wed-Dev install of:
>>>> Apache/2.2.3 (Win32)
>>>> Tomcat 5
>>>> PHP 5.2.0
>>>>
>>>> I have mod_jk connector set up the following way according to
>>>> instructions:
>>>>
>>>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>>>>
>>>> <Directory "/www/tomcat5/webapps/dwr-examples/">
>>>> Options Indexes FollowSymLinks
>>>> AllowOverride None
>>>> Order deny,allow
>>>> Deny from all
>>>> Allow from all
>>>>
>>>> AddType text/html .php .phps
>>>> AddHandler application/x-httpd-php .php
>>>> AddHandler application/x-httpd-php-source .phps
>>>> </Directory>
>>>>
>>>> mod_jk setup:
>>>> LoadModule jk_module modules/mod_jk.so
>>>>
>>>> <IfModule jk_module>
>>>> JkWorkersFile conf/Suite-extra/workers.properties
>>>> JkLogFile logs/mod_jk.log
>>>> JkLogLevel warn
>>>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>>>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>>>> JkRequestLogFormat "%w %V %T"
>>>>
>>>> <Location /*/WEB-INF/*>
>>>> # AllowOverride None
>>>> deny from all
>>>> </Location>
>>>>
>>>> JkMount /dwr-examples/*.jsp ajp13worker1
>>>> JkMount /dwr-examples/*.jspx ajp13worker1
>>>> JkUnMount /dwr-examples/*.html ajp13worker1
>>>> JkUnMount /dwr-examples/*.htm ajp13worker1
>>>> JkUnMount /dwr-examples/*.png ajp13worker1
>>>> JkUnMount /dwr-examples/*.jpg ajp13worker1
>>>> JkUnMount /dwr-examples/*.jpeg ajp13worker1
>>>> JkUnMount /dwr-examples/*.gif ajp13worker1
>>>> JkUnMount /dwr-examples/*.ico ajp13worker1
>>>> JkUnMount /dwr-examples/*.php ajp13worker1
>>>>
>>>> </IfModule>
>>>>
>>>> Everthing works using port 8080 but I am getting the following error
>>>> in the
>>>> error.log in Apache when I use port
>>>> 80 ie: http://localhost:8080/dwr-examples/ vs
>>>> http://localhost/dwr-examples/
>>>>
>>>>
>>>> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
>>>> configured
>>>> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
>>>> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev
>>>> Perl/v5.8.8
>>>> configured -- resuming normal operations
>>>> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
>>>> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
>>>> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
>>>> configured
>>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
>>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start
>>>> mutex.
>>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker
>>>> threads.
>>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to
>>>> listen on
>>>> port 443.
>>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to
>>>> listen on
>>>> port 80.
>>>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>>>> exist:
>>>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>>>> http://localhost/dwr-examples/
>>>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>>>> exist:
>>>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>>>> http://localhost/dwr-examples/
>>>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>>>> exist:
>>>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>>>> http://localhost/dwr-examples/
>>>> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not
>>>> exist:
>>>> C:/www/webroot/favicon.ico
>>>> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not
>>>> exist:
>>>> C:/www/webroot/favicon.ico
>>>>
>>>> Where /DWR is a servlet in Tomcat that works properly under port:8080
>>>>
>>>> When I installed this originally I had the same trouble and through
>>>> great
>>>> effort got it working right. Then I built an elaborate webapp and lost
>>>> the
>>>> drive. The
>>>> backup I had was only of the webapp and not the server setup, dumb me!
>>>>
>>>> One of the things I thought I had to do for some reason, maybe not
>>>> related
>>>> to this problem, was remove a security rule or two from either
>>>> apache or
>>>> tomcat because it was causing a problem.
>>>> I also am getting this from the stdout_.log and don't know if this is
>>>> related.
>>>>
>>>> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
>>>> [org.apache.webapp.balancer.RuleChain:
>>>> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
>>>> News /
>>>> Redirect URL: http://www.cnn.com],
>>>> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
>>>> name:
>>>> paramName / Target param value: paramValue / Redirect URL:
>>>> http://www.yahoo.com],
>>>> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
>>>> http://jakarta.apache.org]]
>>>>
>>>> Unfortunatly I don't know much if anything about the security rules?
>>>> Anyone
>>>> see anything that is obviously wrong?
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To start a new topic, e-mail: users@tomcat.apache.org
>>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>>
>>>
>>> _________________________________________________________________
>>> Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
>>> http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------------------
>>>
>>>
>>>
>>>
>>>
>>> No virus found in this incoming message.
>>> Checked by AVG - http://www.avg.com
>>> Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date:
>>> 10/26/2008 9:27 AM
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> --------------------------------------------------------------------------------
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date:
> 10/26/2008 7:53 PM
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache mod_jk and Tomcat not working correctly
Posted by Wayne Bragg <wl...@cox.net>.
Apache is suppose to serve /dwr-examples and /dwr-examples/dwr just not any
jsp or jspx that is called for
> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
> also covers URLs like "/dwr-examples/dwr", and so it is Apache trying to
> serve it, it is never re-directed to Tomcat by mod_jk, it does not even
> get that far.
I kind of get what you are saying and will try
> AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
> /www/tomcat5/webapps/dwr-examples/$1
>
> (I put html?|jog|php .. because I don't remember how to say "not .jsp")
but the alias structure I posted is the way I always had it and it worked,
but not before I made some other fixes that I don't remember.
I'm not quite understanding what you want me to try though.
Do you mean get rid of the current Alias code and replace it with
AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
/www/tomcat5/webapps/dwr-examples/$1
or use it in addition to it and where exactly should it go?
Prior to the JkMount /dwr-examples/*.jsp ajp13worker1
Forgive me for being so dense but this is new to me!
----- Original Message -----
From: "André Warnier" <aw...@ice-sa.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Sunday, October 26, 2008 6:36 PM
Subject: Re: Apache mod_jk and Tomcat not working correctly
>I think your Alias at the beginning has "more priority" than your
> JkMount later.
> Not that the order in the config file matters, that's not what I mean.
> What I mean is :
> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
> also covers URLs like "/dwr-examples/dwr", and so it is Apache trying to
> serve it, it is never re-directed to Tomcat by mod_jk, it does not even
> get that far.
> Try maybe (one line)
> AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
> /www/tomcat5/webapps/dwr-examples/$1
>
> (I put html?|jog|php .. because I don't remember how to say "not .jsp")
>
>
> Wayne Bragg wrote:
>> I guess I need to add, going through http port 80 works with no errors
>> for everything except .jsp to tomcat
>>
>> ----- Original Message ----- From: "Martin Gainty" <mg...@hotmail.com>
>> To: "Tomcat Users List" <us...@tomcat.apache.org>
>> Sent: Sunday, October 26, 2008 5:41 PM
>> Subject: RE: Apache mod_jk and Tomcat not working correctly
>>
>>
>>
>> Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
>> Listen 80
>>
>> Martin
>> ______________________________________________
>> Disclaimer and confidentiality note
>> Everything in this e-mail and any attachments relates to the official
>> business of Sender. This transmission is of a confidential nature and
>> Sender does not endorse distribution to any party other than intended
>> recipient. Sender does not necessarily endorse content contained within
>> this transmission.
>>
>>
>>> From: wlbragg@cox.net
>>> To: users@tomcat.apache.org
>>> Subject: Apache mod_jk and Tomcat not working correctly
>>> Date: Sun, 26 Oct 2008 17:17:13 -0500
>>>
>>> my setup:
>>> WinXP Home
>>> Wed-Dev install of:
>>> Apache/2.2.3 (Win32)
>>> Tomcat 5
>>> PHP 5.2.0
>>>
>>> I have mod_jk connector set up the following way according to
>>> instructions:
>>>
>>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>>>
>>> <Directory "/www/tomcat5/webapps/dwr-examples/">
>>> Options Indexes FollowSymLinks
>>> AllowOverride None
>>> Order deny,allow
>>> Deny from all
>>> Allow from all
>>>
>>> AddType text/html .php .phps
>>> AddHandler application/x-httpd-php .php
>>> AddHandler application/x-httpd-php-source .phps
>>> </Directory>
>>>
>>> mod_jk setup:
>>> LoadModule jk_module modules/mod_jk.so
>>>
>>> <IfModule jk_module>
>>> JkWorkersFile conf/Suite-extra/workers.properties
>>> JkLogFile logs/mod_jk.log
>>> JkLogLevel warn
>>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>>> JkRequestLogFormat "%w %V %T"
>>>
>>> <Location /*/WEB-INF/*>
>>> # AllowOverride None
>>> deny from all
>>> </Location>
>>>
>>> JkMount /dwr-examples/*.jsp ajp13worker1
>>> JkMount /dwr-examples/*.jspx ajp13worker1
>>> JkUnMount /dwr-examples/*.html ajp13worker1
>>> JkUnMount /dwr-examples/*.htm ajp13worker1
>>> JkUnMount /dwr-examples/*.png ajp13worker1
>>> JkUnMount /dwr-examples/*.jpg ajp13worker1
>>> JkUnMount /dwr-examples/*.jpeg ajp13worker1
>>> JkUnMount /dwr-examples/*.gif ajp13worker1
>>> JkUnMount /dwr-examples/*.ico ajp13worker1
>>> JkUnMount /dwr-examples/*.php ajp13worker1
>>>
>>> </IfModule>
>>>
>>> Everthing works using port 8080 but I am getting the following error
>>> in the
>>> error.log in Apache when I use port
>>> 80 ie: http://localhost:8080/dwr-examples/ vs
>>> http://localhost/dwr-examples/
>>>
>>>
>>> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
>>> configured
>>> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
>>> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev
>>> Perl/v5.8.8
>>> configured -- resuming normal operations
>>> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
>>> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
>>> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
>>> configured
>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker
>>> threads.
>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to
>>> listen on
>>> port 443.
>>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to
>>> listen on
>>> port 80.
>>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>>> exist:
>>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>>> http://localhost/dwr-examples/
>>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>>> exist:
>>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>>> http://localhost/dwr-examples/
>>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>>> exist:
>>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>>> http://localhost/dwr-examples/
>>> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not
>>> exist:
>>> C:/www/webroot/favicon.ico
>>> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not
>>> exist:
>>> C:/www/webroot/favicon.ico
>>>
>>> Where /DWR is a servlet in Tomcat that works properly under port:8080
>>>
>>> When I installed this originally I had the same trouble and through
>>> great
>>> effort got it working right. Then I built an elaborate webapp and lost
>>> the
>>> drive. The
>>> backup I had was only of the webapp and not the server setup, dumb me!
>>>
>>> One of the things I thought I had to do for some reason, maybe not
>>> related
>>> to this problem, was remove a security rule or two from either apache or
>>> tomcat because it was causing a problem.
>>> I also am getting this from the stdout_.log and don't know if this is
>>> related.
>>>
>>> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
>>> [org.apache.webapp.balancer.RuleChain:
>>> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
>>> News /
>>> Redirect URL: http://www.cnn.com],
>>> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
>>> name:
>>> paramName / Target param value: paramValue / Redirect URL:
>>> http://www.yahoo.com],
>>> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
>>> http://jakarta.apache.org]]
>>>
>>> Unfortunatly I don't know much if anything about the security rules?
>>> Anyone
>>> see anything that is obviously wrong?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>
>> _________________________________________________________________
>> Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
>> http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
>>
>>
>>
>> --------------------------------------------------------------------------------
>>
>>
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - http://www.avg.com
>> Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date:
>> 10/26/2008 9:27 AM
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.3/1748 - Release Date: 10/26/2008
7:53 PM
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache mod_jk and Tomcat not working correctly
Posted by André Warnier <aw...@ice-sa.com>.
I think your Alias at the beginning has "more priority" than your
JkMount later.
Not that the order in the config file matters, that's not what I mean.
What I mean is :
Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
also covers URLs like "/dwr-examples/dwr", and so it is Apache trying to
serve it, it is never re-directed to Tomcat by mod_jk, it does not even
get that far.
Try maybe (one line)
AliasMatch /dwr-examples/(.*\.(html?|jpg|php))$
/www/tomcat5/webapps/dwr-examples/$1
(I put html?|jog|php .. because I don't remember how to say "not .jsp")
Wayne Bragg wrote:
> I guess I need to add, going through http port 80 works with no errors
> for everything except .jsp to tomcat
>
> ----- Original Message ----- From: "Martin Gainty" <mg...@hotmail.com>
> To: "Tomcat Users List" <us...@tomcat.apache.org>
> Sent: Sunday, October 26, 2008 5:41 PM
> Subject: RE: Apache mod_jk and Tomcat not working correctly
>
>
>
> Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
> Listen 80
>
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender does not endorse distribution to any party other than intended
> recipient. Sender does not necessarily endorse content contained within
> this transmission.
>
>
>> From: wlbragg@cox.net
>> To: users@tomcat.apache.org
>> Subject: Apache mod_jk and Tomcat not working correctly
>> Date: Sun, 26 Oct 2008 17:17:13 -0500
>>
>> my setup:
>> WinXP Home
>> Wed-Dev install of:
>> Apache/2.2.3 (Win32)
>> Tomcat 5
>> PHP 5.2.0
>>
>> I have mod_jk connector set up the following way according to
>> instructions:
>>
>> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>>
>> <Directory "/www/tomcat5/webapps/dwr-examples/">
>> Options Indexes FollowSymLinks
>> AllowOverride None
>> Order deny,allow
>> Deny from all
>> Allow from all
>>
>> AddType text/html .php .phps
>> AddHandler application/x-httpd-php .php
>> AddHandler application/x-httpd-php-source .phps
>> </Directory>
>>
>> mod_jk setup:
>> LoadModule jk_module modules/mod_jk.so
>>
>> <IfModule jk_module>
>> JkWorkersFile conf/Suite-extra/workers.properties
>> JkLogFile logs/mod_jk.log
>> JkLogLevel warn
>> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
>> JkRequestLogFormat "%w %V %T"
>>
>> <Location /*/WEB-INF/*>
>> # AllowOverride None
>> deny from all
>> </Location>
>>
>> JkMount /dwr-examples/*.jsp ajp13worker1
>> JkMount /dwr-examples/*.jspx ajp13worker1
>> JkUnMount /dwr-examples/*.html ajp13worker1
>> JkUnMount /dwr-examples/*.htm ajp13worker1
>> JkUnMount /dwr-examples/*.png ajp13worker1
>> JkUnMount /dwr-examples/*.jpg ajp13worker1
>> JkUnMount /dwr-examples/*.jpeg ajp13worker1
>> JkUnMount /dwr-examples/*.gif ajp13worker1
>> JkUnMount /dwr-examples/*.ico ajp13worker1
>> JkUnMount /dwr-examples/*.php ajp13worker1
>>
>> </IfModule>
>>
>> Everthing works using port 8080 but I am getting the following error
>> in the
>> error.log in Apache when I use port
>> 80 ie: http://localhost:8080/dwr-examples/ vs
>> http://localhost/dwr-examples/
>>
>>
>> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
>> configured
>> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
>> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
>> configured -- resuming normal operations
>> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
>> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
>> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
>> configured
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker
>> threads.
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to
>> listen on
>> port 443.
>> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to
>> listen on
>> port 80.
>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>> http://localhost/dwr-examples/
>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>> http://localhost/dwr-examples/
>> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
>> http://localhost/dwr-examples/
>> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/webroot/favicon.ico
>> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not
>> exist:
>> C:/www/webroot/favicon.ico
>>
>> Where /DWR is a servlet in Tomcat that works properly under port:8080
>>
>> When I installed this originally I had the same trouble and through great
>> effort got it working right. Then I built an elaborate webapp and lost
>> the
>> drive. The
>> backup I had was only of the webapp and not the server setup, dumb me!
>>
>> One of the things I thought I had to do for some reason, maybe not
>> related
>> to this problem, was remove a security rule or two from either apache or
>> tomcat because it was causing a problem.
>> I also am getting this from the stdout_.log and don't know if this is
>> related.
>>
>> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
>> [org.apache.webapp.balancer.RuleChain:
>> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string:
>> News /
>> Redirect URL: http://www.cnn.com],
>> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param
>> name:
>> paramName / Target param value: paramValue / Redirect URL:
>> http://www.yahoo.com],
>> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
>> http://jakarta.apache.org]]
>>
>> Unfortunatly I don't know much if anything about the security rules?
>> Anyone
>> see anything that is obviously wrong?
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
> _________________________________________________________________
> Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
> http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
>
>
>
> --------------------------------------------------------------------------------
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com
> Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date:
> 10/26/2008 9:27 AM
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Apache mod_jk and Tomcat not working correctly
Posted by Wayne Bragg <wl...@cox.net>.
I guess I need to add, going through http port 80 works with no errors for
everything except .jsp to tomcat
----- Original Message -----
From: "Martin Gainty" <mg...@hotmail.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Sunday, October 26, 2008 5:41 PM
Subject: RE: Apache mod_jk and Tomcat not working correctly
Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
Listen 80
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
business of Sender. This transmission is of a confidential nature and Sender
does not endorse distribution to any party other than intended recipient.
Sender does not necessarily endorse content contained within this
transmission.
> From: wlbragg@cox.net
> To: users@tomcat.apache.org
> Subject: Apache mod_jk and Tomcat not working correctly
> Date: Sun, 26 Oct 2008 17:17:13 -0500
>
> my setup:
> WinXP Home
> Wed-Dev install of:
> Apache/2.2.3 (Win32)
> Tomcat 5
> PHP 5.2.0
>
> I have mod_jk connector set up the following way according to
> instructions:
>
> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>
> <Directory "/www/tomcat5/webapps/dwr-examples/">
> Options Indexes FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> Allow from all
>
> AddType text/html .php .phps
> AddHandler application/x-httpd-php .php
> AddHandler application/x-httpd-php-source .phps
> </Directory>
>
> mod_jk setup:
> LoadModule jk_module modules/mod_jk.so
>
> <IfModule jk_module>
> JkWorkersFile conf/Suite-extra/workers.properties
> JkLogFile logs/mod_jk.log
> JkLogLevel warn
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat "%w %V %T"
>
> <Location /*/WEB-INF/*>
> # AllowOverride None
> deny from all
> </Location>
>
> JkMount /dwr-examples/*.jsp ajp13worker1
> JkMount /dwr-examples/*.jspx ajp13worker1
> JkUnMount /dwr-examples/*.html ajp13worker1
> JkUnMount /dwr-examples/*.htm ajp13worker1
> JkUnMount /dwr-examples/*.png ajp13worker1
> JkUnMount /dwr-examples/*.jpg ajp13worker1
> JkUnMount /dwr-examples/*.jpeg ajp13worker1
> JkUnMount /dwr-examples/*.gif ajp13worker1
> JkUnMount /dwr-examples/*.ico ajp13worker1
> JkUnMount /dwr-examples/*.php ajp13worker1
>
> </IfModule>
>
> Everthing works using port 8080 but I am getting the following error in
> the
> error.log in Apache when I use port
> 80 ie: http://localhost:8080/dwr-examples/ vs
> http://localhost/dwr-examples/
>
>
> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4
> configured
> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
> configured -- resuming normal operations
> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4
> configured
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker
> threads.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen
> on
> port 443.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen
> on
> port 80.
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/webroot/favicon.ico
> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/webroot/favicon.ico
>
> Where /DWR is a servlet in Tomcat that works properly under port:8080
>
> When I installed this originally I had the same trouble and through great
> effort got it working right. Then I built an elaborate webapp and lost the
> drive. The
> backup I had was only of the webapp and not the server setup, dumb me!
>
> One of the things I thought I had to do for some reason, maybe not related
> to this problem, was remove a security rule or two from either apache or
> tomcat because it was causing a problem.
> I also am getting this from the stdout_.log and don't know if this is
> related.
>
> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> [org.apache.webapp.balancer.RuleChain:
> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News
> /
> Redirect URL: http://www.cnn.com],
> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
> paramName / Target param value: paramValue / Redirect URL:
> http://www.yahoo.com],
> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> http://jakarta.apache.org]]
>
> Unfortunatly I don't know much if anything about the security rules?
> Anyone
> see anything that is obviously wrong?
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
_________________________________________________________________
Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.175 / Virus Database: 270.8.3/1747 - Release Date: 10/26/2008
9:27 AM
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Apache mod_jk and Tomcat not working correctly
Posted by Martin Gainty <mg...@hotmail.com>.
Please confirm this parameter in $APACHE_HOME/conf/httpd.conf
Listen 80
Martin
______________________________________________
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.
> From: wlbragg@cox.net
> To: users@tomcat.apache.org
> Subject: Apache mod_jk and Tomcat not working correctly
> Date: Sun, 26 Oct 2008 17:17:13 -0500
>
> my setup:
> WinXP Home
> Wed-Dev install of:
> Apache/2.2.3 (Win32)
> Tomcat 5
> PHP 5.2.0
>
> I have mod_jk connector set up the following way according to
> instructions:
>
> Alias /dwr-examples "/www/tomcat5/webapps/dwr-examples/"
>
> <Directory "/www/tomcat5/webapps/dwr-examples/">
> Options Indexes FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> Allow from all
>
> AddType text/html .php .phps
> AddHandler application/x-httpd-php .php
> AddHandler application/x-httpd-php-source .phps
> </Directory>
>
> mod_jk setup:
> LoadModule jk_module modules/mod_jk.so
>
> <IfModule jk_module>
> JkWorkersFile conf/Suite-extra/workers.properties
> JkLogFile logs/mod_jk.log
> JkLogLevel warn
> JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
> JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat "%w %V %T"
>
> <Location /*/WEB-INF/*>
> # AllowOverride None
> deny from all
> </Location>
>
> JkMount /dwr-examples/*.jsp ajp13worker1
> JkMount /dwr-examples/*.jspx ajp13worker1
> JkUnMount /dwr-examples/*.html ajp13worker1
> JkUnMount /dwr-examples/*.htm ajp13worker1
> JkUnMount /dwr-examples/*.png ajp13worker1
> JkUnMount /dwr-examples/*.jpg ajp13worker1
> JkUnMount /dwr-examples/*.jpeg ajp13worker1
> JkUnMount /dwr-examples/*.gif ajp13worker1
> JkUnMount /dwr-examples/*.ico ajp13worker1
> JkUnMount /dwr-examples/*.php ajp13worker1
>
> </IfModule>
>
> Everthing works using port 8080 but I am getting the following error in the
> error.log in Apache when I use port
> 80 ie: http://localhost:8080/dwr-examples/ vs http://localhost/dwr-examples/
>
>
> [Sun Oct 26 15:11:32 2008] [notice] ModSecurity for Apache 2.0.4 configured
> [Sun Oct 26 15:11:34 2008] [notice] Apache/2.2.3 (Win32) PHP/5.2.0
> mod_ssl/2.2.3 OpenSSL/0.9.8d mod_jk/1.2.19 mod_perl/2.0.3-dev Perl/v5.8.8
> configured -- resuming normal operations
> [Sun Oct 26 15:11:34 2008] [notice] Server built: Nov 15 2006 21:34:51
> [Sun Oct 26 15:11:34 2008] [notice] Parent: Created child process 268
> [Sun Oct 26 15:11:36 2008] [notice] ModSecurity for Apache 2.0.4 configured
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Child process is running
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Acquired the start mutex.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting 250 worker threads.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen on
> port 443.
> [Sun Oct 26 15:11:38 2008] [notice] Child 268: Starting thread to listen on
> port 80.
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:51 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/tomcat5/webapps/dwr-examples/dwr, referer:
> http://localhost/dwr-examples/
> [Sun Oct 26 15:11:52 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/webroot/favicon.ico
> [Sun Oct 26 15:11:55 2008] [error] [client 127.0.0.1] File does not exist:
> C:/www/webroot/favicon.ico
>
> Where /DWR is a servlet in Tomcat that works properly under port:8080
>
> When I installed this originally I had the same trouble and through great
> effort got it working right. Then I built an elaborate webapp and lost the
> drive. The
> backup I had was only of the webapp and not the server setup, dumb me!
>
> One of the things I thought I had to do for some reason, maybe not related
> to this problem, was remove a security rule or two from either apache or
> tomcat because it was causing a problem.
> I also am getting this from the stdout_.log and don't know if this is
> related.
>
> INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain:
> [org.apache.webapp.balancer.RuleChain:
> [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News /
> Redirect URL: http://www.cnn.com],
> [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name:
> paramName / Target param value: paramValue / Redirect URL:
> http://www.yahoo.com],
> [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL:
> http://jakarta.apache.org]]
>
> Unfortunatly I don't know much if anything about the security rules? Anyone
> see anything that is obviously wrong?
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
_________________________________________________________________
Want to read Hotmail messages in Outlook? The Wordsmiths show you how.
http://windowslive.com/connect/post/wedowindowslive.spaces.live.com-Blog-cns!20EE04FBC541789!167.entry?ocid=TXT_TAGLM_WL_hotmail_092008