From f54df2e07db68b937355eba61de46440871e28d4 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 25 Mar 2022 23:20:37 +0100 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 90e7687..acd3d92 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -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; -}