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

Update nginx.conf

This commit is contained in:
ericgaspar 2022-03-25 23:20:37 +01:00
parent 3d15eadcca
commit f54df2e07d

View file

@ -7,7 +7,10 @@ location / {
#client_max_body_size 50M;
try_files $uri $uri/ @__NAME__;
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
try_files $uri $uri/ /index.php;
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
@ -20,7 +23,3 @@ location / {
fastcgi_param SCRIPT_FILENAME $request_filename;
}
}
location @__NAME__ {
rewrite /(.*)$ /index.php?title=$1&$args;
}