nginx

Nginx tips and tricks

Redirect root of domain to somewhere else: server { server_name zombix.org www.zombix.org; location = / { rewrite ^ http://about.me/z0mbix permanent; } } Redirect www.domain.com to domain.com: server { server_name www.z0mbix.io; return 301 $scheme://z0mbix.io$request_uri; } Redirect all HTTP requests to HTTPS: server { server_…