You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/09/17 14:46:53 UTC
DO NOT REPLY [Bug 45824] New: mod_rewrite & mod_access do not work
together
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: bugs@httpd.apache.org
ReportedBy: montesa@unizar.es
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 45824] mod_rewrite & mod_access do not work
together
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45824
Eric Covener <co...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Eric Covener <co...@gmail.com> 2008-09-17 08:19:29 PST ---
Your htaccess defines the authentication required to serve files out of that
directory, but your rewrite prevents you from serving files from that directory
so it is appropriate that they don't apply.
Please try a user support forum like users@httpd.apache.org if you need help
setting up your desired behavior.
--
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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org