1
0
Fork 0
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:
Éric Gaspar 2023-10-06 21:46:56 +02:00
parent d00c10624a
commit 4505fbc2cd

View file

@ -7,13 +7,14 @@ location __PATH__/ {
index index.php /_route.php; index index.php /_route.php;
# Increase size limit # 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__/__PATH__/_route.php?$query_string;
try_files $uri $uri/ __PATH__/_route.php?$query_string; location ~ \.php$ {
if (!-e $request_filename) {
location ~ [^/]\.php(/|$) { rewrite ^__PATH__/?(.*)$ __PATH__/_route.php?/$1 last;
fastcgi_split_path_info ^(.+?\.php)(/.*)$; break;
}
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;