1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/selfoss_ynh.git synced 2024-09-03 20:16:21 +02:00

Use alias instead of root

This commit is contained in:
Binnette 2022-12-22 10:21:00 +01:00
parent 679a0a201d
commit 27802b0724

View file

@ -1,7 +1,10 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__ { location __PATH__ {
root /var/www/; # Path to source
alias __FINALPATH__/;
# ~ instruct nginx to perform a case-sensitive regular expression match
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;