duy13 / vDDoS-Protection

Welcome to vDDoS, a HTTP(S) DDoS Protection Reverse Proxy. Thank you for using!
https://vddos.voduy.com
488 stars 139 forks source link

Hello, i have problem with folden (disable the firewall) #11

Closed unnellu closed 6 years ago

unnellu commented 6 years ago

how to make a folder with a disabled firewall? location https://site.com/folden12345/ { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass https://0.0.0.0:443; } does not disable the firewall

Thanks

duy13 commented 6 years ago
nano /vddos/conf.d/redirect.conf

#############################################################################################
############## NON-Security for whitelist directories of your domain: 
############## (NON-Security for http://your-domain.com/folden12345)
location /folden12345 {
    proxy_set_header   Host             $host;
    proxy_set_header   X-Real-IP        $remote_addr;
    proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
   proxy_pass      http://72.13.44.113:80;
}

http://72.13.44.113:80 is your backend server

duy13 commented 6 years ago

Since vDDOS version 1.13.7, you can create custom rules for each website in the /vddos/conf.d/cus directory.

nano /vddos/conf.d/cus/your-domain.com.server.conf

#############################################################################################
############## NON-Security for whitelist directories of your domain: 
############## (NON-Security for http://your-domain.com/folden12345)
location /folden12345 {
    proxy_set_header   Host             $host;
    proxy_set_header   X-Real-IP        $remote_addr;
    proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
   proxy_pass      http://72.13.44.113:80;
}