redirecting to https

Ian M. Evans ianevans at
Sun Mar 23 03:49:12 MSK 2008

Okay, maybe I have a cold coming on...but I've got a couple of URLs I 
need to redirect to https and the examples I've seen don't appear to be 

location /asecuredir {
        rewrite  ^(.*)$1  redirect;

I've tried /asecuredir  and /asecuredir/

It appears to redirect to https if I enter but doesn't redirect if I use


More information about the nginx mailing list