redirect from http to https

mike mike503 at gmail.com
Mon Mar 9 07:17:59 MSK 2009


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 <lists at 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?
>
> thank you
>
>
> 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;
>>         }
>
> --
> Posted via http://www.ruby-forum.com/.
>
>





More information about the nginx mailing list