httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53794] Problem on rewrite
Date Tue, 02 Oct 2012 10:35:15 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53794

Christian Cioni <christian.cioni@staff.aruba.it> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #5 from Christian Cioni <christian.cioni@staff.aruba.it> ---
Sorry but I do not understand! In Apache 2.2 the same configuration works
properly.

But with Apache 2.4, priority is given to the DirectoryIndex than rewriting
rules.

Another example:

RewriteEngine On

RewriteRule ^ securecode.png captcha / code.php [L]

RewriteRule ^ (. *) \ / ([0-9] *) \ / (. *) $ Template.php? Param = $ 1 & page
= $ 2 & other = $ 3 [L]
RewriteRule ^ (. *) \ / (Page =) ([0-9] *) $ template.php? Page = $ 1 & page =
$ 3 [L]
RewriteRule ^ (. *). Htm $ template.php? Page = $ 1 [QSA]
RewriteRule ^ $ template.php [L]

and I foder such an index.php file, the rewrite is not considered and you will
see the contents of the file index.php

[Tue Oct 02 12:03:47.206423 2012] [authz_core:debug] [pid 24027:tid
139640557938432] mod_authz_core.c(802): [client 46.37.0.11:16001] AH01626:
authorization result of Require all granted: granted
[Tue Oct 02 12:03:47.206465 2012] [authz_core:debug] [pid 24027:tid
139640557938432] mod_authz_core.c(802): [client 46.37.0.11:16001] AH01626:
authorization result of <RequireAny>: granted
[Tue Oct 02 12:03:47.207751 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/ -> 
[Tue Oct 02 12:03:47.207772 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^securecode.png' to
uri ''
[Tue Oct 02 12:03:47.207783 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/ -> 
[Tue Oct 02 12:03:47.207792 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/([0-9]*)\\/(.*)$' to uri ''
[Tue Oct 02 12:03:47.207801 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/ -> 
[Tue Oct 02 12:03:47.207810 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/(page=)([0-9]*)$' to uri ''
[Tue Oct 02 12:03:47.207818 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/ -> 
[Tue Oct 02 12:03:47.207826 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^(.*).htm$' to uri ''
[Tue Oct 02 12:03:47.207835 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/ -> 
[Tue Oct 02 12:03:47.207861 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^$' to uri ''
[Tue Oct 02 12:03:47.207874 2012] [rewrite:trace2] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] rewrite '' -> 'template.php'
[Tue Oct 02 12:03:47.207884 2012] [rewrite:trace3] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] add per-dir prefix: template.php ->
/web/htdocs/www.rosinicornici.it/home/template.php
[Tue Oct 02 12:03:47.207899 2012] [rewrite:trace2] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip document_root prefix:
/web/htdocs/www.rosinicornici.it/home/template.php -> /template.php
[Tue Oct 02 12:03:47.207908 2012] [rewrite:trace1] [pid 24027:tid
139640557938432] mod_rewrite.c(467): [client 46.37.0.11:16001] 46.37.0.11 - -
[www.rosinicornici.it/sid#1c117c0][rid#7f0070002970/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] internal redirect with /template.php
[INTERNAL REDIRECT]












sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/ -> 
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^securecode.png' to
uri ''
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/ -> 
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/([0-9]*)\\/(.*)$' to uri ''
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/ -> 
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/(page=)([0-9]*)$' to uri ''
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/ -> 
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^(.*).htm$' to uri ''
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/ -> 
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^$' to uri ''
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] rewrite '' -> 'template.php'
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] add per-dir prefix: template.php ->
/web/htdocs/www.rosinicornici.it/home/template.php
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip document_root prefix:
/web/htdocs/www.rosinicornici.it/home/template.php -> /template.php
sid#1c117c0][rid#7f0070028da0/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] internal redirect with /template.php
[INTERNAL REDIRECT]
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.html -> index.html
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^securecode.png' to
uri 'index.html'
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.html -> index.html
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/([0-9]*)\\/(.*)$' to uri 'index.html'
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.html -> index.html
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/(page=)([0-9]*)$' to uri 'index.html'
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.html -> index.html
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^(.*).htm$' to uri
'index.html'
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.html -> index.html
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^$' to uri
'index.html'
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] pass through
/web/htdocs/www.rosinicornici.it/home/index.html
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.htm -> index.htm
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^securecode.png' to
uri 'index.htm'
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.htm -> index.htm
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/([0-9]*)\\/(.*)$' to uri 'index.htm'
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.htm -> index.htm
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/(page=)([0-9]*)$' to uri 'index.htm'
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.htm -> index.htm
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^(.*).htm$' to uri
'index.htm'
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] rewrite 'index.htm' ->
'template.php?pagina=index'
sid#1c117c0][rid#7f0070020d60/subreq] split uri=template.php?pagina=index ->
uri=template.php, args=pagina=index
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] add per-dir prefix: template.php ->
/web/htdocs/www.rosinicornici.it/home/template.php
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/template.php -> template.php
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^$' to uri
'template.php'
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip document_root prefix:
/web/htdocs/www.rosinicornici.it/home/template.php -> /template.php
sid#1c117c0][rid#7f0070020d60/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] internal redirect with /template.php
[INTERNAL REDIRECT]
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.php -> index.php
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^securecode.png' to
uri 'index.php'
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.php -> index.php
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/([0-9]*)\\/(.*)$' to uri 'index.php'
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.php -> index.php
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/(page=)([0-9]*)$' to uri 'index.php'
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.php -> index.php
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^(.*).htm$' to uri
'index.php'
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/index.php -> index.php
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^$' to uri
'index.php'
sid#1c117c0][rid#7f0070022d70/subreq] [perdir
/web/htdocs/www.rosinicornici.it/home/] pass through
/web/htdocs/www.rosinicornici.it/home/index.php
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/favicon.ico -> favicon.ico
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^securecode.png' to
uri 'favicon.ico'
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/favicon.ico -> favicon.ico
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/([0-9]*)\\/(.*)$' to uri 'favicon.ico'
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/favicon.ico -> favicon.ico
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern
'^(.*)\\/(page=)([0-9]*)$' to uri 'favicon.ico'
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/favicon.ico -> favicon.ico
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^(.*).htm$' to uri
'favicon.ico'
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] strip per-dir prefix:
/web/htdocs/www.rosinicornici.it/home/favicon.ico -> favicon.ico
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] applying pattern '^$' to uri
'favicon.ico'
sid#1c117c0][rid#7f0070004980/initial] [perdir
/web/htdocs/www.rosinicornici.it/home/] pass through
/web/htdocs/www.rosinicornici.it/home/favicon.ico

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message