How to test nginx config file Assuming you have nginx installed on your linux server. Run the following command: sudo nginx -t