Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Redirect robots.txt to php if file does not exist to generate the correct sitemap absolute urls for multisite
givanz7c3e0615211b
diff --git a/nginx-live.conf b/nginx-live.confindex f4d2cc7..688519f 100755--- a/nginx-live.conf+++ b/nginx-live.conf@@ -53,10 +53,14 @@ server {#error_log /var/log/nginx/error.log debug;- #gzip on;- #gzip_vary on;- #gzip_min_length 10240;- #gzip_types text/plain text/css text/xml text/javascript application/x-javascript+ 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;@@ -79,7 +83,7 @@ server {set $cache_uri null;}- # Don't use the cache for logged in users or recent commenters+ # Don't use the cache for logged in users or if products in cartif ($http_cookie ~* "nocache|user|cart") {set $skip_cache 1;set $cache_uri null;@@ -93,29 +97,33 @@ server {#index index.html index.htm index.php;#error_page 404 /index.php;- error_page 404 /404.html;-+ #error_page 404 /404.html;++ #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,4})$" {+ location ~* "\.(?!php)([\w]{3,5})$" {expires max;log_not_found off;sendfile on;sendfile_max_chunk 1m;fastcgi_hide_header "Set-Cookie";-- try_files $uri =404;}location / {default_type text/html;- index index.php;-- try_files /page-cache/$http_host$cache_uri /page-cache/$http_host$cache_uri/index.html $uri $uri/ /index.php?$args;-- #try_files $uri $uri/ /index.php?$args;+ index index.php index.html index.htm;+ try_files /page-cache/$http_host$cache_uri /page-cache/$http_host$cache_uri/index.html $uri $uri/ /index.php$is_args$args;+ #try_files $uri $uri/ /index.php$is_args$args;#cache debug#add_header "uri" $cache_uri;+ #add_header "skip_cache" $skip_cache;}location ~ /media/.+?\.php$ {@@ -125,11 +133,10 @@ server {location ~ \.php$ {#fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;#fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;+ include fastcgi.conf;fastcgi_pass php;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;- include fastcgi_params;-#uncomment fastcgi_cache to enable fastcgi cache, this should not be necessary#unless you set the path to a memory mapped location for even faster cache@@ -140,18 +147,7 @@ server {fastcgi_cache_valid 30m;#add_header X-VCache $upstream_cache_status;}-- location = /favicon.ico {- log_not_found off;- access_log off;- }-- location = /robots.txt {- allow all;- log_not_found off;- access_log off;- }-+location ~ /\.(?!well-known).* {deny all;}