Update 'config/nginx/domainconfig.cf'
This commit is contained in:
@@ -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/
|
||||||
|
|||||||
Reference in New Issue
Block a user