1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00

location / empêche le redémarrage de nginx

This commit is contained in:
magikcypress 2017-02-22 16:11:52 +01:00
parent 42a4d40bd4
commit 2da18a9116

View file

@ -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;