Simple rewrite (redirection)

EricTheRed03 nginx-forum at
Wed Nov 23 19:46:13 UTC 2011

Hi Guys,

In my HTTP config section in the config file, I would like to implement
a redirection based on this scenario:

If the URL is not "" then redirect to the
"https" home. else go to our hidden url (our testing boxes)

#logic would be somthing like this..
If (The URL is anything but "/ahiddenurl") 
        go to ""
      go to "http://hiddenurl"

Is this possible in the nginx.conf file?? Any help would be so very much

Posted at Nginx Forum:,218893,218893#msg-218893

More information about the nginx mailing list