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:
parent
679a0a201d
commit
27802b0724
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,10 @@
|
|||
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
|
||||
location __PATH__ {
|
||||
|
||||
root /var/www/;
|
||||
# Path to source
|
||||
alias __FINALPATH__/;
|
||||
|
||||
# ~ instruct nginx to perform a case-sensitive regular expression match
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||
|
|
Loading…
Reference in a new issue