Update 'config/nginx/domainconfig.cf'

This commit is contained in:
b.waal
2019-09-05 12:48:01 +02:00
parent e46bd5210b
commit 379448b041

View File

@@ -1,3 +1,4 @@
cat <<EOF > /etc/nginx/sites-available/"$domain"
#fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=MYAPP:100m max_size=10g inactive=1440m; #fastcgi_cache_path /etc/nginx/cache levels=1:2 keys_zone=MYAPP:100m max_size=10g inactive=1440m;
server { server {
@@ -94,4 +95,7 @@ server {
if (\$http_cookie = "PHPSESSID") { if (\$http_cookie = "PHPSESSID") {
set \$no_cache 1; set \$no_cache 1;
} }
} }
EOF
ln -s /etc/nginx/sites-available/"$domain" /etc/nginx/sites-enabled/