Include it in your vhost configuration


#1

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/


#2

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;


#3

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


#4

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

it make whole site down


#5

ok started working i have to restart the nginx


#6