Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 15 Jun 2014 at 4:36

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 15 Jun 2014 at 4:46

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 31 Jul 2014 at 2:40

@GoogleCodeExporter
Copy link
Author

I used the above workaround but it didn't resolve the issue. The website 
doesn't even redirect.

Original comment by [email protected] on 15 Oct 2014 at 2:28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant