redirect from http to https
Steve Zhuo
lists at ruby-forum.com
Mon Mar 9 06:43:48 MSK 2009
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