From 6a30bceb9e5468c697c3ccd3227667a8b774c7a7 Mon Sep 17 00:00:00 2001 From: Mathias Rhein Date: Thu, 24 Mar 2016 00:10:26 +0100 Subject: [PATCH] Update nginx.conf if is evil see https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/ --- webserver-configs/nginx.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/webserver-configs/nginx.conf b/webserver-configs/nginx.conf index 04d1798892..814ec88466 100644 --- a/webserver-configs/nginx.conf +++ b/webserver-configs/nginx.conf @@ -10,10 +10,9 @@ server { ## Begin - Index # for subfolders, simply adjust: # `location /subfolder {` - # and the rewrite to use `/subfolder/index.php` + # and the try_file to use `/subfolder/index.php` and `/subfolder/index.html` location / { - try_files $uri $uri/ /index.html; - if (!-e $request_filename){ rewrite ^(.*)$ /index.php last; } + try_files $uri $uri/ /index.html /index.php; } ## End - Index