Redirect Rule

milin korath milinkorath at
Sat Jul 9 16:49:04 MSD 2011


I am running my djago application in nginx server. In my configuration I
redirect all http to https using the below  settings

location / { rewrite ^/(.*)$1 permanent; }

What i want is i need to redirect to all my http request to https  except
only one url like

I tried

location ~* / {
    rewrite ^/(.*)$1 permanent;

location = {
    rewrite ^/(.*)$1 permanent;

But no luck.Can you please advice me what went wrong here.Really i am struck
with this.


Milin Korath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list