Add 'config/nginx/PostfixAdmin-site-unconfigured'
This commit is contained in:
52
config/nginx/PostfixAdmin-site-unconfigured
Normal file
52
config/nginx/PostfixAdmin-site-unconfigured
Normal file
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user