mirror of
https://github.com/YunoHost-Apps/paheko_ynh.git
synced 2024-09-03 19:56:22 +02:00
Update nginx.conf
This commit is contained in:
parent
d00c10624a
commit
4505fbc2cd
1 changed files with 7 additions and 6 deletions
|
@ -7,13 +7,14 @@ location __PATH__/ {
|
|||
index index.php /_route.php;
|
||||
|
||||
# Increase size limit
|
||||
client_max_body_size 50M;
|
||||
client_max_body_size 2M;
|
||||
|
||||
#try_files $uri $uri/ __PATH__/__PATH__/_route.php?$query_string;
|
||||
try_files $uri $uri/ __PATH__/_route.php?$query_string;
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
try_files $uri $uri/ __PATH__/__PATH__/_route.php?$query_string;
|
||||
location ~ \.php$ {
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^__PATH__/?(.*)$ __PATH__/_route.php?/$1 last;
|
||||
break;
|
||||
}
|
||||
fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock;
|
||||
|
||||
fastcgi_index index.php;
|
||||
|
|
Loading…
Add table
Reference in a new issue