From 62aad57b1f8f74707dc19fe6b42a9a6fc07fee7e Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 25 Jun 2017 21:51:22 -0600 Subject: [PATCH] Add sermons directory --- nginx/default | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nginx/default b/nginx/default index 98b1669..d01259d 100644 --- a/nginx/default +++ b/nginx/default @@ -51,6 +51,16 @@ server { #try_files $uri $uri/ =404; try_files $uri $uri/ /index.php?$args; } + + location /sermons/ { + alias /home/josh/sermons/; + # First attempt to serve request as file, then + # as directory, then fall back to displaying a 404. + try_files $uri $uri/ =404; + #try_files $uri $uri/ /index.php?$args; + autoindex on; + } + # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 #