redirect

NGINX – Redirecting HTTP to HTTPS

Reading Time: < 1 minute Using HTTPS is highly recommended and I cannot stop when explaining the benefits of using it! Also something which is more important is to make sure when HTTPS is setup it is ensured that all traffic via HTTP is blocked in a way that it is redirected to HTTPS. This can be easily achieved by giving NGINX the following set of instructions in the virtual Continue Reading

NGINX – Redirecting traffic between www and non-www domain

Reading Time: < 1 minute Just in case you ever wondered whether the re-routing from www to non-www or non-www to www domain is possible using NGINX then you bet it is! In fact it is very simple and can be done using the following steps 1. Redirecting from www to non-www Setup a initial virtual server block to point your domain to your content, a simple example would look something Continue Reading