From 2c3c348999aae43ccc9fa84aab7e460ba009d8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C6=ACHE=20=D0=AFAW=20=E2=98=A3?= Date: Sat, 30 Dec 2017 22:29:12 +0100 Subject: [PATCH] Create template --- static/raws/template | 56 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 static/raws/template diff --git a/static/raws/template b/static/raws/template new file mode 100644 index 0000000..bedf908 --- /dev/null +++ b/static/raws/template @@ -0,0 +1,56 @@ +server { + listen 80; + root /hostdata/raws.com/public_html; + index index.html index.php; + server_name raws.com www.raws.com; + vhost_traffic_status off; + + location / { + SecRulesEnabled; + LearningMode; + DeniedUrl "/denied/"; + CheckRule "$SQL >= 8" BLOCK; + CheckRule "$RFI >= 8" BLOCK; + CheckRule "$TRAVERSAL >= 4" BLOCK; + CheckRule "$EVADE >= 4" BLOCK; + CheckRule "$XSS >= 8" BLOCK; + access_log /hostdata/raws.com/logs/access.log upstream_time; + error_log /hostdata/raws.com/logs/error.log; + try_files $uri $uri/ =404; + } + + location /denied/ { + return 444; + } + # ========================================= + # PHPMYADMIN. + # ========================================= + location /phpmyadmin { + root /hostdata/default/; + location ~ ^/phpmyadmin/(.+\.php)$ { + try_files $uri =404; + root /hostdata/default/; + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include /etc/nginx/fastcgi_params; + } + } + # ========================================= + # END PHPMYADMIN. + # ========================================= + + # ========================================= + # PHP. + # ========================================= + location ~ \.php { + try_files $uri /index.php =404; + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } + # ========================================= + # END PHP. + # ========================================= +}