mirror of
https://github.com/YunoHost-Apps/emoncms_ynh.git
synced 2024-09-03 18:36:03 +02:00
Fix nginx config
This commit is contained in:
parent
440d750f6b
commit
318fd1148e
1 changed files with 22 additions and 18 deletions
|
@ -4,14 +4,18 @@ location __PATH__/ {
|
|||
# Path to source
|
||||
alias __INSTALL_DIR__/;
|
||||
|
||||
location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
|
||||
try_files $uri $uri;
|
||||
}
|
||||
|
||||
index index.php;
|
||||
|
||||
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
||||
client_max_body_size 50M;
|
||||
try_files $uri $uri/ index.php;
|
||||
|
||||
rewrite ^/(.*)$ /index.php?q=$1 last;
|
||||
|
||||
try_files $uri $uri/ index.php;
|
||||
# Common parameter to increase upload size limit in conjunction with dedicated php-fpm file
|
||||
client_max_body_size 50M;
|
||||
|
||||
location ~ [^/]\.php(/|$) {
|
||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||
|
|
Loading…
Reference in a new issue