1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garradin_ynh.git synced 2024-09-03 18:36:17 +02:00

try change nginx.conf and how to add a line on config.local.php

This commit is contained in:
Robles Rodolphe 2020-04-08 14:00:43 +02:00
parent cbc7e7005d
commit 9a9f7cf843

View file

@ -1,13 +1,13 @@
location __PATH__ { location __PATH__ {
# Path to source # Path to source
root __FINALPATH__/www ; root __FINALPATH__/www/ ;
if ($scheme = http) { if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent; rewrite ^ https://$server_name$request_uri? permanent;
} }
location / { location / {
try_files $uri $uri/ index.php /_route.php; try_files $uri $uri/ index.php /_route.php;
index index.php /_route.php; index index.php /_route.php;
} }
@ -15,7 +15,7 @@ location __PATH__ {
location ~ \.php { location ~ \.php {
try_files $uri $uri/ /_route.php; try_files $uri $uri/ /_route.php;
fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock; fastcgi_pass unix:/var/run/php/php7.0-fpm-__NAME__.sock;
include fastcgi_params; include fastcgi.conf;
fastcgi_param REMOTE_USER $remote_user; fastcgi_param REMOTE_USER $remote_user;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $request_filename; fastcgi_param SCRIPT_FILENAME $request_filename;