From d867b509bb9b688925372088da990cf5993a58bb Mon Sep 17 00:00:00 2001 From: bprieshof Date: Thu, 19 Sep 2019 11:56:05 +0200 Subject: [PATCH] Add 'config/nginx/PostfixAdmin-site-unconfigured' --- config/nginx/PostfixAdmin-site-unconfigured | 52 +++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 config/nginx/PostfixAdmin-site-unconfigured diff --git a/config/nginx/PostfixAdmin-site-unconfigured b/config/nginx/PostfixAdmin-site-unconfigured new file mode 100644 index 0000000..b341cb3 --- /dev/null +++ b/config/nginx/PostfixAdmin-site-unconfigured @@ -0,0 +1,52 @@ +server { + listen 80; + listen [::]:80; + root /var/www/DOMAINname/html; + index index.php index.html index.htm index.nginx-debian.html; + server_name DOMAINname; + + gzip on; + gzip_proxied any; + gzip_types text/plain text/css text/xml text/javascript application/javascript application/x-javascript image/svg image/svg+xml application/xml image/x-icon; + gzip_comp_level 2; + gzip_disable "msie6"; + gzip_buffers 16 8k; + + location / { + try_files $uri $uri/ /index.php$is_args$args; + } + + location = /favicon.ico { log_not_found off; access_log off; } + location = /robots.txt { log_not_found off; access_log off; allow all; } + location ~* \.(css|gif|ico|jpeg|jpg|js|png|svg|webp|eot|otf|woff|woff2|ttf|ogg)$ { + expires max; + log_not_found off; + add_header Cache-Control "public, no-transform"; + } + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/var/run/php/phpPHPver-fpm.sock; + } + location ~ /\.ht { + deny all; + } + set $no_cache 0; + if ($request_method = POST) { + set $no_cache 1; + } + if ($query_string != "") { + set $no_cache 1; + } + if ($http_cookie = "PHPSESSID") { + set $no_cache 1; + } + + location ^~ /rainloop/data { + deny all; + } + + location ^~ /data { + deny all; + } + +}