search for request_uri in try_files

this lets us put images in app_not_responding.html
This commit is contained in:
Girish Ramakrishnan
2020-03-06 17:01:45 -08:00
parent 7a63fd4711
commit 46ede3d60d

View File

@@ -132,7 +132,7 @@ server {
location /app_error_page {
root /home/yellowtent/boxdata;
# the first argument looks for file under the root
try_files /custom_pages/app_not_responding.html /appstatus.html;
try_files /custom_pages/$request_uri /custom_pages/app_not_responding.html /appstatus.html;
# internal means this is for internal routing and cannot be accessed as URL from browser
internal;
}