chebotar / mod-spdy

Automatically exported from code.google.com/p/mod-spdy
0 stars 0 forks source link

Always get "This webpage has a redirect loop" after install mod-spdy #91

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version/revision number of mod_spdy are you using?
mod-spdy-beta-0.9.4.3-420.x86_64

What version of Apache are you using, and on what operating system?  (Use
`apache2ctl -v` to check.)
Server version: Apache/2.2.15 (Unix)
Server built:   Apr  3 2014 23:56:16
CentOS 6 64

What other Apache modules are you using?  (Use `apache2ctl -M` to check.)
mod_rewrite

What browser version did you use to access the mod_spdy server?  On what
operating system? What flags was the browser invoked with?  (For
Chrome/Chromium, go to about:version to check.)
Google Chrome   35.0.1916.114 (Official Build 270117) m
OS  Windows 
Blink   537.36 (@173968)
JavaScript  V8 3.25.28.16
Flash   13.0.0.214
User Agent  Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like 
Gecko) Chrome/35.0.1916.114 Safari/537.36

What steps will reproduce the problem?
1.install mod_spdy
2.restart apache
3.append
"RewriteEngine On
RewriteCond %{HTTPS} !^on$ [NC]
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]"
in .htaccess

What is the expected result? What do you see instead?
I want to redirect all none https url to https, it works well with the original 
apache, but after instell the mod_spdy, I always get a redirect loop if I use 
spdy enabled browser. If I use IE 11, it's still fine.

Please provide any additional information below.
No more information.

Original issue reported on code.google.com by wzxj...@gmail.com on 15 Jun 2014 at 4:36

GoogleCodeExporter commented 8 years ago
Ok...I find the problem.
mod_rewrite doesn't recognize spyd, so even I use https://xxxx/, it also thinks 
I'm not using https, the %{HTTPS} is still off, this cause the redirect loop. I 
changed the .htaccess file to this and fix this problem.

RewriteEngine   On
RewriteCond     %{HTTPS}        off
RewriteCond     %{SERVER_PORT}  ^80$ [NC]
RewriteRule     (.*)    https://%{HTTP_HOST}%{REQUEST_URI}

Can you please fix this bug to let mod_rewrite recognize spyd directly? I don't 
want add port in the rewrite rules. Because it's too dangerouse to multi ports 
sites.

Original comment by wzxj...@gmail.com on 15 Jun 2014 at 4:46

GoogleCodeExporter commented 8 years ago
I have the exact same issue and used the above workaround using the port in the 
rewrite rule for now.
Please fix this bug, so we don't need to use this workaround.
Thanks

Original comment by zoltan.f...@gravitalent.com on 31 Jul 2014 at 2:40

GoogleCodeExporter commented 8 years ago
I used the above workaround but it didn't resolve the issue. The website 
doesn't even redirect.

Original comment by thiyada...@gmail.com on 15 Oct 2014 at 2:28