Friday, 13 July 2012

Redirect www to non www nginx

nginx is great - here's a quick tip if you are serving up a Sinatra app using it....well actually any app I guess. Redirecting a www based domain to a non-www based or naked domain is pretty easy - in the nginx conf file, you'll need something like this:

No comments:

Post a Comment