diff --git a/ansible/roles/homepage/templates/homepage.conf.j2 b/ansible/roles/homepage/templates/homepage.conf.j2 index 2395df4..81cb714 100755 --- a/ansible/roles/homepage/templates/homepage.conf.j2 +++ b/ansible/roles/homepage/templates/homepage.conf.j2 @@ -26,14 +26,14 @@ server { root {{ homepage_dir }}/current; index index.html; - error_page 404 = @notfound; + error_page 404 =404 @notfound; location / { try_files $uri $uri/ =404; } location @notfound { - try_files /404/index.html =409; + try_files 404.html /404/index.html =404; internal; } }