mirror of
https://github.com/YunoHost-Apps/automad_ynh.git
synced 2024-09-03 18:06:04 +02:00
Fix NGINX conf
This commit is contained in:
parent
55513c5f67
commit
1b2ef562c5
1 changed files with 3 additions and 9 deletions
|
@ -9,20 +9,14 @@ location __PATH__/ {
|
||||||
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
||||||
#client_max_body_size 50M;
|
#client_max_body_size 50M;
|
||||||
|
|
||||||
try_files $uri $uri/ @rewrite;
|
# Bug in Nginx with locations and aliases (see http://stackoverflow.com/a/35102259 )
|
||||||
|
try_files $uri $uri/ __PATH__/__PATH__/index.php$is_args$args;
|
||||||
|
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~* \.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;
|
||||||
|
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param REMOTE_USER $remote_user;
|
|
||||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
|
||||||
fastcgi_param SCRIPT_FILENAME $request_filename;
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
location @rewrite {
|
|
||||||
rewrite ^/(.+)$ __PATH__/index.php?page=$1 last;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue