The plugin does not have any configuration option. The plugin detects the information it needs to generate Nginx directives required to protect your website from common threats. You have to add these directives to your Nginx configuration.
Nginx Secure Plugin generates Nginx server directives as per your website requirement. You have to add these directives to Nginx configuration file. The Nginx configuration file will be located in
Follow below steps to add plugin generated configuration to your Nginx server
How to add directives to Nginx Configuration?
Create a blank file secure.conf in directory nginx configuration file is located. For example if nginx.conf is located in /etc/nginx then create secure.conf in this directory.
Copy directives generated by plugin into this file. You can select all , copy all and paste all. Save the file secure.conf.
Open the website configuration file located in sites-available directory of Nginx configuration directory. For example of Nginx.conf lies in /etc/nginx then sites-available directory will be in /etc/nginx.
In this file look for below lines
Include the file in the server block preferably towards the end or after line
So your final configuration will look like
Restart or reload Nginx configuration
service nginx reload
service nginx restart