WordPress Permalinks on VestaCP with Nginx

On VestaCp, the Nginx conf file for all your domains is located in:

Using Nano (or similar editor), locate the part where your domain is mentioned, and under location, you add the following lines:

See line #12: