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:
parent
42a4d40bd4
commit
2da18a9116
1 changed files with 7 additions and 7 deletions
|
@ -25,19 +25,19 @@ location __PATHTOCHANGE__ {
|
||||||
expires 1w;
|
expires 1w;
|
||||||
add_header Cache-Control public;
|
add_header Cache-Control public;
|
||||||
}
|
}
|
||||||
location / {
|
#location / {
|
||||||
# La configuration globale du site. Tout ce qui ne va dans
|
# La configuration globale du site. Tout ce qui ne va dans
|
||||||
# aucune autre location vas ici.
|
# aucune autre location vas ici.
|
||||||
|
|
||||||
# Quelques fichiers standards générés par spip et devant être
|
# Quelques fichiers standards générés par spip et devant être
|
||||||
# à des URL précises.
|
# à des URL précises.
|
||||||
rewrite ^/([^/]*)/robots\.txt$ /spip.php?page=robots.txt last;
|
# rewrite ^/([^/]*)/robots\.txt$ /spip.php?page=robots.txt last;
|
||||||
rewrite ^/([^/]*)/favicon\.ico$ /spip.php?page=favicon.ico last;
|
# rewrite ^/([^/]*)/favicon\.ico$ /spip.php?page=favicon.ico last;
|
||||||
rewrite ^/([^/]*)/sitemap\.xml$ /spip.php?page=sitemap.xml last;
|
# rewrite ^/([^/]*)/sitemap\.xml$ /spip.php?page=sitemap.xml last;
|
||||||
rewrite ^/([^/]*)/mobile\.html$ /spip.php?page=mobile_uk 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(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
fastcgi_pass unix:/var/run/php5-fpm-__NAMETOCHANGE__.sock;
|
fastcgi_pass unix:/var/run/php5-fpm-__NAMETOCHANGE__.sock;
|
||||||
|
|
Loading…
Reference in a new issue