Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

DO NOT REPLY [Bug 15751] New: - Rewriting of language negotiated pages fails

From: <bugzilla(at)apache.org>
Date: Wed Jan 01 2003 - 09:29:20 EST


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

Rewriting of language negotiated pages fails

           Summary: Rewriting of language negotiated pages fails
           Product: Apache httpd-2.0
           Version: 2.0.43
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: adam@os.inf.tu-dresden.de

If a have a directory "a" with two files: "index.html.en" and "index.html.de", and query /a/index.html, rewriting rules will be applied to /a/index.html rather than to the file sent out (i.e. /a/index.html.en (in most cases)). /a/index.html doesn't exist on the filesystem. The same applies if one queries /a/ only, the DirectoryIndex file is found (i.e. index.html in this case) and the rewriting rules are applied to index.html instead of the actual file.
This used to work with apache 1.3.x.

I used a fresh copy of httpd-2.0.43.tar.gz and configured it with --prefix=/var/tmp/apache2 --enable-so --enable-rewrite --enable-modules=all --enable-mods-shared=all,

to the standard configuration I added at the end of the file: RewriteEngine On
RewriteLogLevel 9
RewriteLog /var/tmp/apache2/logs/rwlog
RewriteRule ^(.*) - [L]

and the option MultiViews to the DocumentRoot directory

to see the following in the logs:

==> access_log <==

... - - [01/Jan/2003:15:01:53 +0100] "GET /a/ HTTP/1.0" 304 0

Do you need help?X

==> rwlog <==

... - - [01/Jan/2003:15:01:53 +0100]
[.../sid#6000000000051368][rid#60000000000c14f0/initial] (2) init rewrite engine with requested uri /a/

  • - [01/Jan/2003:15:01:53 +0100] [.../sid#6000000000051368][rid#60000000000c14f0/initial] (3) applying pattern '^(.*)' to uri '/a/' ... - - [01/Jan/2003:15:01:53 +0100] [.../sid#6000000000051368][rid#60000000000c14f0/initial] (1) pass through /a/ ... - - [01/Jan/2003:15:01:53 +0100] [.../sid#6000000000051368][rid#60000000000c7520/subreq] (2) init rewrite engine with requested uri /a/index.html
  • - [01/Jan/2003:15:01:53 +0100] [.../sid#6000000000051368][rid#60000000000c7520/subreq] (3) applying pattern '^(.*)' to uri '/a/index.html' ... - - [01/Jan/2003:15:01:53 +0100] [.../sid#6000000000051368][rid#60000000000c7520/subreq] (1) pass through /a/index.html

$ ls -la a
total 16

drwxr-xr-x    2 adam     users        4096 Jan  1 15:05 .
drwxr-xr-x    3 adam     users        4096 Jan  1 14:30 ..
-rw-r--r--    1 adam     users           8 Jan  1 14:31 index.html.de
-rw-r--r--    1 adam     users           8 Jan  1 14:34 index.html.en

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org For additional commands, e-mail: bugs-help@httpd.apache.org Received on Wed Jan 01 14:28:06 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 16:44:17 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library