ASF Bugzilla – Attachment 26076 Details for
Bug 50004
per-dir rewrite without DocumentRoot or RewriteBase rewrites wrong
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
httpd.conf, .htaccess, RewriteLogs
Wrong behavior with default DocumentRoot.txt (text/plain), 3.49 KB, created by
Artem
on 2010-09-26 10:09:04 UTC
(
hide
)
Description:
httpd.conf, .htaccess, RewriteLogs
Filename:
MIME Type:
Creator:
Artem
Created:
2010-09-26 10:09:04 UTC
Size:
3.49 KB
patch
obsolete
>httpd.conf >---------- >Listen 80 >#DocumentRoot C:/apache/htdocs >LoadModule rewrite_module modules/mod_rewrite.so >RewriteLog log.txt >RewriteLogLevel 9 > > >.htaccess (in C:/apache/htdocs) >------------------------------- >RewriteEngine on >RewriteRule one.htm two.html > > > >log.txt (Explicit DocumentRoot) >------------------------------- >127.0.0.1 - - [26/Sep/2010:17:51:49 +0400] [localhost/sid#6b5148][rid#707e20/initial] (3) [perdir C:/apache/htdocs/] strip per-dir prefix: C:/apache/htdocs/one.htm -> one.htm >127.0.0.1 - - [26/Sep/2010:17:51:49 +0400] [localhost/sid#6b5148][rid#707e20/initial] (3) [perdir C:/apache/htdocs/] applying pattern 'one.htm' to uri 'one.htm' >127.0.0.1 - - [26/Sep/2010:17:51:49 +0400] [localhost/sid#6b5148][rid#707e20/initial] (2) [perdir C:/apache/htdocs/] rewrite 'one.htm' -> 'two.htm' >127.0.0.1 - - [26/Sep/2010:17:51:49 +0400] [localhost/sid#6b5148][rid#707e20/initial] (3) [perdir C:/apache/htdocs/] add per-dir prefix: two.htm -> C:/apache/htdocs/two.htm >127.0.0.1 - - [26/Sep/2010:17:51:49 +0400] [localhost/sid#6b5148][rid#707e20/initial] (2) [perdir C:/apache/htdocs/] strip document_root prefix: C:/apache/htdocs/two.htm -> /two.htm >127.0.0.1 - - [26/Sep/2010:17:51:49 +0400] [localhost/sid#6b5148][rid#707e20/initial] (1) [perdir C:/apache/htdocs/] internal redirect with /two.htm [INTERNAL REDIRECT] >127.0.0.1 - - [26/Sep/2010:17:51:49 +0400] [localhost/sid#6b5148][rid#718800/initial/redir#1] (3) [perdir C:/apache/htdocs/] strip per-dir prefix: C:/apache/htdocs/two.htm -> two.htm >127.0.0.1 - - [26/Sep/2010:17:51:49 +0400] [localhost/sid#6b5148][rid#718800/initial/redir#1] (3) [perdir C:/apache/htdocs/] applying pattern 'one.htm' to uri 'two.htm' >127.0.0.1 - - [26/Sep/2010:17:51:49 +0400] [localhost/sid#6b5148][rid#718800/initial/redir#1] (1) [perdir C:/apache/htdocs/] pass through C:/apache/htdocs/two.htm > > > >log.txt (Default DocumentRoot) >------------------------------ >127.0.0.1 - - [26/Sep/2010:17:55:53 +0400] [localhost/sid#6b5148][rid#703e18/initial] (3) [perdir C:/apache/htdocs/] strip per-dir prefix: C:/apache/htdocs/one.htm -> one.htm >127.0.0.1 - - [26/Sep/2010:17:55:53 +0400] [localhost/sid#6b5148][rid#703e18/initial] (3) [perdir C:/apache/htdocs/] applying pattern 'one.htm' to uri 'one.htm' >127.0.0.1 - - [26/Sep/2010:17:55:53 +0400] [localhost/sid#6b5148][rid#703e18/initial] (2) [perdir C:/apache/htdocs/] rewrite 'one.htm' -> 'two.htm' >127.0.0.1 - - [26/Sep/2010:17:55:53 +0400] [localhost/sid#6b5148][rid#703e18/initial] (3) [perdir C:/apache/htdocs/] add per-dir prefix: two.htm -> C:/apache/htdocs/two.htm >127.0.0.1 - - [26/Sep/2010:17:55:53 +0400] [localhost/sid#6b5148][rid#703e18/initial] (1) [perdir C:/apache/htdocs/] internal redirect with C:/apache/htdocs/two.htm [INTERNAL REDIRECT] >127.0.0.1 - - [26/Sep/2010:17:55:53 +0400] [localhost/sid#6b5148][rid#714708/initial/redir#1] (3) [perdir C:/apache/htdocs/] add path info postfix: C:/apache/htdocs/apache -> C:/apache/htdocs/apache/htdocs/two.htm >127.0.0.1 - - [26/Sep/2010:17:55:53 +0400] [localhost/sid#6b5148][rid#714708/initial/redir#1] (3) [perdir C:/apache/htdocs/] strip per-dir prefix: C:/apache/htdocs/apache/htdocs/two.htm -> apache/htdocs/two.htm >127.0.0.1 - - [26/Sep/2010:17:55:53 +0400] [localhost/sid#6b5148][rid#714708/initial/redir#1] (3) [perdir C:/apache/htdocs/] applying pattern 'one.htm' to uri 'apache/htdocs/two.htm' >127.0.0.1 - - [26/Sep/2010:17:55:53 +0400] [localhost/sid#6b5148][rid#714708/initial/redir#1] (1) [perdir C:/apache/htdocs/] pass through C:/apache/htdocs/apache
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 50004
: 26076