diff --git a/conf/nginx.conf b/conf/nginx.conf index c9cd198..01e9c59 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -25,19 +25,19 @@ location __PATHTOCHANGE__ { expires 1w; add_header Cache-Control public; } - location / { + #location / { # 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;