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

Modification de la conf de nginx

This commit is contained in:
magikcypress 2015-04-28 19:58:18 +02:00
parent 042e31bc0c
commit 298f94bb4f
2 changed files with 8 additions and 2 deletions

View file

@ -9,6 +9,12 @@ location PATHTOCHANGE {
rewrite ^(.+)$ PATHTOCHANGE/spip.php?page=$1 last;
}
client_max_body_size 30m;
location ~^/(tmp|config)/{
return 403;
}
location / {
try_files $uri $uri/ /spip.php?q=$uri&$args;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm-spip.sock;
@ -21,4 +27,4 @@ location PATHTOCHANGE {
# Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc;
}
}

View file

@ -43,7 +43,7 @@ sudo chown -R www-data: $final_path
# Modify Nginx configuration file and copy it to Nginx conf directory
sed -i "s@PATHTOCHANGE@$path@g" ../conf/nginx.conf
sed -i "s@ALIASTOCHANGE@$final_path/@g" ../conf/nginx.conf
sed -i "s@ALIASTOCHANGE@$final_path@g" ../conf/nginx.conf
sudo cp ../conf/nginx.conf /etc/nginx/conf.d/$domain.d/spip.conf
sed -i "s@NAMETOCHANGE@spip@g" ../conf/php-fpm.conf