D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
bitninja-waf
/
etc
/
default
/
Filename :
default-locations.conf
back
Copy
listen 60300; listen [::]:60300; listen 60301; listen [::]:60301; client_max_body_size 0; set $backend_dest $server_addr; if ($backend_dest ~ "^unix:") { set $backend_dest $http_bn_tp_dstip; set $backend_proto $http_bn_tp_proto; set $tp_clientip $http_bn_tp_clientip; set $backend_port $http_bn_tp_dstport; set $bind_ip $backend_dest; } if ($backend_port_ssl) { set $backend_port $backend_port_ssl; set $backend_proto "https"; } if ($backend_dest ~ "^[a-fA-F0-9:]+$") { set $backend_dest [$backend_dest]; } include BitNinjaTProxy/tproxy*.conf; if ($transparent) { set $bind_ip $tp_clientip; } location @errorz { root /opt/bitninja-waf/etc/www; try_files $uri /50x.html =502; } location ~* .*ls2srSZyZap38kaks97eDsC8VPwxKGGx7MltG5rZUAJbWqj76wpQOcDZWV2fzZ6K5sO3pgHYvneCuCxZRASR43tOJjxmJzjJCAqW/.*$ { root /opt/bitninja-waf/etc/www; rewrite ^(.*ls2srSZyZap38kaks97eDsC8VPwxKGGx7MltG5rZUAJbWqj76wpQOcDZWV2fzZ6K5sO3pgHYvneCuCxZRASR43tOJjxmJzjJCAqW)/(.*) /$2 break; keepalive_requests 0; keepalive_timeout 0; } location ~* \.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|htm|html|js|css|xml)$ { proxy_pass $backend_proto://$backend_dest:$backend_port; } location ~* \/autodiscover\/autodiscover\.xml$ { proxy_pass $backend_proto://$backend_dest:$backend_port; } include default/*_location.conf;