1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/BicBucStriim_ynh.git synced 2024-09-03 18:15:53 +02:00

Update nginx.conf

This commit is contained in:
ericgaspar 2020-10-15 12:44:42 +02:00
parent d33e3975c6
commit 13f3fba28c
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -5,6 +5,7 @@ location __PATH__/ {
alias __FINALPATH__/;
index index.php;
rewrite ^/(__PATH__/img/.*)$ /$1 break;
rewrite ^/(__PATH__/js/.*)$ /$1 break;
rewrite ^/(__PATH__/style/.*)$ /$1 break;
@ -17,14 +18,8 @@ location __PATH__/ {
try_files $uri $uri/ index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass unix:/var/run/php__PHPVERSION__-fpm-__NAME__.sock;
# Filename to be changed if dedicated php-fpm process is required
# This is to be used INSTEAD of line above
# Don't forget to adjust scripts install/upgrade/remove/backup accordingly
#
#fastcgi_pass unix:/var/run/php__PHPVERSION__-fpm-__NAME__.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REMOTE_USER $remote_user;