From 9535ff287074c7358a09551c7711feb2c74a1361 Mon Sep 17 00:00:00 2001 From: magikcypress Date: Thu, 23 Feb 2017 02:12:44 +0100 Subject: [PATCH] comment rewrite dans la conf de nginx --- conf/nginx.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 0ca95b8..045afd5 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -36,19 +36,19 @@ location __PATHTOCHANGE__ { expires 1w; add_header Cache-Control public; } - location ~ ^/__NAMETOCHANGE__ { + #location ~ ^/__NAMETOCHANGE__ { # La configuration globale du site. Tout ce qui ne va dans # aucune autre location vas ici. # Quelques fichiers standards générés par spip et devant être # à des URL précises. - rewrite ^/([^/]*)/robots\.txt$ /spip.php?page=robots.txt last; - rewrite ^/([^/]*)/favicon\.ico$ /spip.php?page=favicon.ico last; - rewrite ^/([^/]*)/sitemap\.xml$ /spip.php?page=sitemap.xml last; - rewrite ^/([^/]*)/mobile\.html$ /spip.php?page=mobile_uk last; + # rewrite ^/([^/]*)/robots\.txt$ /spip.php?page=robots.txt last; + # rewrite ^/([^/]*)/favicon\.ico$ /spip.php?page=favicon.ico last; + # rewrite ^/([^/]*)/sitemap\.xml$ /spip.php?page=sitemap.xml last; + # rewrite ^/([^/]*)/mobile\.html$ /spip.php?page=mobile_uk last; - try_files $uri $uri/ /spip.php?q=$uri&$args; - } + # try_files $uri $uri/ /spip.php?q=$uri&$args; + #} location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php5-fpm-__NAMETOCHANGE__.sock;