DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30118>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30118

mod_rewrite & DocumentIndex

           Summary: mod_rewrite & DocumentIndex
           Product: Apache httpd-2.0
           Version: 2.0.50
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I'm using mod_rewrite to pass jsp/servlet/html files from Apache to Tomcat, but 
no others files like php, css, js,... Apache y Tomcat servers are in diferent 
machines.

My httpd.conf ("machine:80" is apache server and "othermachine:8080" is tomcat 
server):

Port 80
ServerName machine
DirectoryIndex index.html index.php

RewriteEngine on
RewriteLog /etc/httpd/logs/rewrite_log
RewriteLogLevel 2
RewriteRule ^/(.+)\.jsp$ http://othermachine:8080/$1.jsp [P,L]
RewriteRule ^/(.*)servlet/(.+)$ http://othermachine:8080/$1servlet/$2 [P,L]
RewriteRule ^/(.+)\.(html|htm)$ http://othermachine:8080/$1.$2 [P,L]

In Apache 1.3.29, when I run "http://machine"; (without index.html) works OK!!!

The rewrite_log file:

[rid#2188628/initial] (2) init rewrite engine with requested uri /
[rid#2188628/initial] (1) pass through /
[rid#218a640/subreq] (2) init rewrite engine with requested uri /index.html
[rid#218a640/subreq] (1) pass through /index.html
[rid#2189b80/initial/redir#1] (2) init rewrite engine with requested 
uri /index.html
[rid#2189b80/initial/redir#1] (2) rewrite /index.html -> 
http://othermachine:8080/index.html
[rid#2189b80/initial/redir#1] (2) forcing proxy-throughput with 
http://othermachine:8080/index.html
[rid#2189b80/initial/redir#1] (1) go-ahead with proxy request 
proxy:http://othermachine:8080/index.html [OK]
[rid#21936b0/initial] (2) init rewrite engine with requested 
uri /noticia/xml/A00.xml
[rid#21936b0/initial] (1) pass through /noticia/xml/A00.xml
....

But, in Apache 2.0.50 (with the same httpd.conf), when I run "http://machine"; 
(without index.html) dont works!!!

The rewrite_log file:

[rid#a99540/initial] (2) init rewrite engine with requested uri /
[rid#a99540/initial] (1) pass through /
[rid#a9b5c8/subreq] (2) init rewrite engine with requested uri /index.html
[rid#a9b5c8/subreq] (1) pass through /index.html
[rid#a9d5d0/initial] (2) init rewrite engine with requested 
uri /img/bienvenido.gif
[rid#a9d5d0/initial] (1) pass through /img/bienvenido.gif
....

Then default index.html (DirectoryIndex) no pass to Tomcat :-(

Why? Its works fine in Apache 1.3.29!!!

Thanks in advance!!!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to