httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39731] - mod_rewrite has error when deal with HTTPS but not HTTP
Date Tue, 06 Jun 2006 16:54:17 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39731>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

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





------- Additional Comments From robsiegen@googlemail.com  2006-06-06 16:54 -------
This is a configuration issue, not a bug.

Your inherited ruleset is always true, if HTTP_HOST starts with 172.18.20.23
That is also true for a request of https://172.18.20.23/subdir/ which would be
redirected again and again to https://172.18.20.23/subdir/.

You should see that in your RewriteLog. You might want to use

RewriteCond %{REQUEST_METHOD} =TRACE
RewriteRule ^ - [F]

RewriteCond %{HTTP_HOST}   ^172.18.20.23
RewriteRule ^ https://%{HTTP_HOST}/subdir/  [R]

<IfDefine SSL>
	<VirtualHost 172.18.20.23:443>
		RewriteEngine on
		RewriteCond %{REQUEST_METHOD} =TRACE
		RewriteRule ^ - [F]

		RewriteCond %{HTTP_HOST}   ^172.18.20.23
		# exclude everything starting with /subdir/
		RewriteRule !^/subdir/ https://%{HTTP_HOST}/subdir/  [R]
		.........
	</VirtualHost>
</IfDefine>

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

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message