Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Add domain to sitemaps for multisite

givanzb3e1bb12ba63
diff --git a/nginx-live-nocache.conf b/nginx-live-nocache.conf
index eaf0a6c..b00ad34 100755
--- a/nginx-live-nocache.conf
+++ b/nginx-live-nocache.conf
@@ -21,18 +21,42 @@ server {
index index.html index.htm index.php;
- charset utf-8;
+ gzip on;
+ gzip_vary on;
+ gzip_min_length 10240;
+ gzip_proxied any;
+ gzip_comp_level 6;
+ gzip_buffers 16 8k;
+ gzip_http_version 1.1;
+ gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
+
+ #charset utf-8;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
+ #add domain to sitemaps for multisite
+ location = /robots.txt {
+ log_not_found off;
+ access_log off;
+ try_files $uri /index.php$is_args$args;
+ }
+
+ #static files
+ location ~* "\.(?!php)([\w]{3,5})$" {
+ expires max;
+ log_not_found off;
+ sendfile on;
+ sendfile_max_chunk 1m;
+ fastcgi_hide_header "Set-Cookie";
+ }
+
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
- location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
@@ -42,10 +66,10 @@ server {
location ~ \.php$ {
#fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
- fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
+ include fastcgi.conf;
+ fastcgi_pass php;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
- include fastcgi_params;
}
location ~ /\.(?!well-known).* {