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

Update nginx.conf

This commit is contained in:
ericgaspar 2022-02-26 20:58:51 +01:00
parent 9d91c33fe3
commit 27aa6dc7d6
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -1,12 +1,13 @@
#sub_path_only rewrite ^__PATH__$ __PATH__/ permanent; #sub_path_only rewrite ^__PATH__$ __PATH__/ permanent;
location __PATH__/ { location __PATH__/ {
# Path to source # Path to source
alias __FINALPATH__/; alias __FINALPATH__/;
index index.php index.html index.htm; index index.php index.html index.htm;
try_files $uri $uri/ index.php; try_files $uri $uri/ __PATH__/yourls-loader.php$is_args$args;
location ~ [^/]\.php(/|$) { location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;