Include it in your vhost configuration

Hi can some one help me where i have to add this

Include it in your vhost configuration with :

include /etc/nginx/common/protect.conf;

Here is a LInk https://kb.virtubox.net/knowledgebase/block-exploits-sql-injections-attacks-nginx/

Create protect.conf in /etc/nginx/common folder and add the listed content in it. Then inside sites-available/example.com add the following line: include /etc/nginx/common/protect.conf;

1 Like

in filezilla it shows me example.com msdos file how do i edit it can you tell me the cmd so i can do it

Got it nano /etc/nginx/sites-available/example.com

it make whole site down

ok started working i have to restart the nginx