summaryrefslogtreecommitdiffstats
path: root/modules/tozt/files/nginx
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-10-13 04:48:17 -0400
committerJesse Luehrs <doy@tozt.net>2018-10-13 04:48:17 -0400
commit72ebe1665d6da31be5620ef2d5c3619b51a43b3c (patch)
treea6cf37769f4001bb3694e1afb040233d5be2ed99 /modules/tozt/files/nginx
parent7ad0f0b6ee3fc797630bd45161ac520284544fc1 (diff)
downloadpuppet-tozt-72ebe1665d6da31be5620ef2d5c3619b51a43b3c.tar.gz
puppet-tozt-72ebe1665d6da31be5620ef2d5c3619b51a43b3c.zip
the index directive doesn't work right with try_files
Diffstat (limited to 'modules/tozt/files/nginx')
-rw-r--r--modules/tozt/files/nginx/doy-tls.conf3
-rw-r--r--modules/tozt/files/nginx/doy.conf3
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/tozt/files/nginx/doy-tls.conf b/modules/tozt/files/nginx/doy-tls.conf
index 78f1dde..3cff136 100644
--- a/modules/tozt/files/nginx/doy-tls.conf
+++ b/modules/tozt/files/nginx/doy-tls.conf
@@ -9,8 +9,7 @@ server {
location / {
root /home/doy;
- try_files /site$uri /public_html$uri =404;
- index index.html index.htm;
+ try_files /site$uri /site$uri/index.html /public_html$uri =404;
}
location /recipes/ {
diff --git a/modules/tozt/files/nginx/doy.conf b/modules/tozt/files/nginx/doy.conf
index 4b5e7b9..19eaade 100644
--- a/modules/tozt/files/nginx/doy.conf
+++ b/modules/tozt/files/nginx/doy.conf
@@ -7,8 +7,7 @@ server {
location / {
root /home/doy;
- try_files /site$uri /public_html$uri =404;
- index index.html index.htm;
+ try_files /site$uri /site$uri/index.html /public_html$uri =404;
}
location /recipes/ {