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:
parent
042e31bc0c
commit
298f94bb4f
2 changed files with 8 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue