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 ~ /\. {