16 messages in ru.sysoev.nginxRe: redirect from http to https
FromSent OnAttachments
Steve ZhuoMar 8, 2009 1:28 pm 
Grzegorz NosekMar 8, 2009 3:43 pm 
Steve ZhuoMar 8, 2009 4:03 pm 
mikeMar 8, 2009 4:15 pm 
Steve ZhuoMar 8, 2009 5:07 pm 
mikeMar 8, 2009 6:43 pm 
Steve ZhuoMar 8, 2009 8:43 pm 
mikeMar 8, 2009 9:17 pm 
Steve ZhuoMar 9, 2009 4:41 pm 
mikeMar 9, 2009 4:54 pm 
Steve ZhuoMar 9, 2009 5:12 pm 
Dave CheneyMar 9, 2009 5:37 pm 
Steve ZhuoMar 10, 2009 11:02 am 
Igor SysoevMar 10, 2009 11:54 am 
Steve ZhuoMar 10, 2009 12:51 pm 
Igor SysoevMar 10, 2009 1:21 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: redirect from http to httpsActions...
From:mike (mike@gmail.com)
Date:Mar 8, 2009 9:17:36 pm
List:ru.sysoev.nginx

a) is debugging on ?

b) maybe you're getting flooded, or you're popular somehow?

c) is it a search engine crawler, or some application like it? i've been flooded with a bunch of requests per minute for weeks before we noticed someone was hitting our website for no good reason...

On Sun, Mar 8, 2009 at 7:43 PM, Steve Zhuo <lis@ruby-forum.com> wrote:

Thanks mike, it's working now, but i encounter another problem, every time i visited the website, it had so many log entries, like few hundred of them. all from the same ip address.  Any ideas?

mike wrote:

your proxy_set_header stuff would go where you proxy things, not on your redirection

your http to https should be a simple

 server {        listen       80;        server_name  www.domain.com domain.com;       rewrite     ^(.*)  https://$server_name$1 permanent; }

this is literally one i have working flawlessly (just changed the domain):

        server {                 listen 80;                 server_name foo.com bar.com;                 rewrite ^/(.*) https://foo.com/$1 permanent;         }