Nginx WordPress Permalinks

Enable WordPress permalinks on Nginx web server.

Edit host’s config file at etc/nginx/sites-enabled

Add the following:

If your wordpress installation is on a subfolder, ex https://ohnorandom.com/blog , add this code:
Sample host config on Debian 8 and Nginx 1.8.0: