https://issues.apache.org/bugzilla/show_bug.cgi?id=45824

           Summary: mod_rewrite & mod_access do not work together
           Product: Apache httpd-2
           Version: 2.0.51
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_rewrite
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I have the following -rewrite- rules in server config file
(/etc/httpd/conf/httpd.conf):

RewriteEngine on

RewriteRule ^/(.+)\.(html|htm)$ http://localhost:8080/$1.$2 [P,L]
RewriteCond %{LA-U:REQUEST_URI} ^/(.+)\.(html|htm)
RewriteRule ^(.*)/$ http://localhost:8080/%1.%2 [P,L]

I use these rules to send my html pages to Tomcat. Tomcat change this html
pages  by applying filters.

But, if in the directory where I have my html pages there is a file .htaccess
to control access...

AuthName "User and password"
AuthType Basic
require user myusername

then, the httpd server do not use the file .htaccess and apply the -rewrite-
rule without controlling access to the file .html

Why? How can I change the priority for the server to read first the .htaccess
and then apply the -rewrite- rule (if allowed).


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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

Reply via email to