From 40df12542bdcd712b7b1bf628b1aee88c3590f5d Mon Sep 17 00:00:00 2001 From: Josue-T Date: Thu, 18 Jan 2018 23:27:09 +0100 Subject: [PATCH] Fix rewrite instruction --- conf/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index defb298..a3d0747 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -34,8 +34,6 @@ alias __FINALPATH__/; if ($scheme = http) { rewrite ^ https://$server_name$request_uri? permanent; } - -rewrite ^ https://$server_name$request_uri? permanent; #allow uploads up to 20MB in size client_max_body_size 20m; @@ -93,8 +91,10 @@ rewrite ^ https://$server_name$request_uri? permanent; #.htaccess file from Friendica converted using http://winginx.com/en/htaccess location ~ "(^|/)\.git" { return 403;} autoindex off; - location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?pagename=$1;} - } + if (!-e $request_filename) { + rewrite ^(.*)$ /index.php?pagename=$1; +} + #deny access to all dot files location ~ /\. {