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/02/27 17:45:55 UTC

[Bug 44500] New: Version 2.2.8 on MS Server 2003 Doesn' t Process Second RewriteCond

http://issues.apache.org/bugzilla/show_bug.cgi?id=44500

           Summary: Version 2.2.8 on MS Server 2003 Doesn't Process Second
                    RewriteCond
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: camkelly@shsu.edu


I am running version 2.2.8 on Server 2003. The following snippet does
nothing(as if it is ignored) on the Server but works as expected on Windows XP
running HTTPD version 2.2.4. In short, I want to prohibit access/use of PHP
files in the network shared download folders:

RewriteEngine On

RewriteCond %{SERVER_PORT} ^443$
RewriteRule ^/(.*)$ http://127.0.0.1/$1 [R=permanent]

RewriteCond %{REQUEST_URI}      Downloads/.*\.php$
RewriteRule ^/(.*)$ - [F]

Any help is appreciated but it appears to be a bug with Server 2003 or version
2.2.8.

thanks,
-Cam


-- 
Configure bugmail: http://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


[Bug 44500] Version 2.2.8 on MS Server 2003 Doesn' t Process Second RewriteCond

Posted by bu...@apache.org.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44500


Joshua Slive <sl...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #2 from Joshua Slive <sl...@apache.org>  2008-02-27 11:21:02 ---
This sounds like something that should have been brought to a user-support
forum, since it is very likely a configuration problem rather than a bug.

If you really believe you have found a bug, please post the RewriteLog output
(at RewriteLogLevel 9) when these rules are processed.


-- 
Configure bugmail: http://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


[Bug 44500] Version 2.2.8 on MS Server 2003 Doesn' t Process Second RewriteCond

Posted by bu...@apache.org.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44500





--- Comment #1 from Cam Kelly <ca...@shsu.edu>  2008-02-27 08:48:55 ---
(In reply to comment #0)

> RewriteCond %{SERVER_PORT} ^443$
> RewriteRule ^/(.*)$ http://127.0.0.1/$1 [R=permanent]

... AND Yes, I replaced the 127.0.0.1 with the real-server name before moving
to the server ...

-Cam (again)


-- 
Configure bugmail: http://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