Skip to content

Commit ea37f35

Browse files
r-birknerblind-oracle
authored andcommitted
fix(nginx): intercept errors and display custom error page
1 parent bb0ac2e commit ea37f35

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ic-os/boundary-guestos/rootfs/etc/certificate-syncer/domain.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ server {
77
ssl_certificate {ssl_certificate_path};
88
ssl_certificate_key {ssl_certificate_key_path};
99

10+
include "includes/error_pages.conf";
11+
1012
# Match all requests to /sw.js that also have the header 'Service-Worker: script' and deliver the service worker uninstall script instead.
1113
location /sw.js {
1214
if ($http_service_worker = "script") {

ic-os/boundary-guestos/rootfs/etc/nginx/includes/error_pages.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
proxy_intercept_errors on;
2+
13
error_page 451 /451.html;
24

35
location /451.html {

0 commit comments

Comments
 (0)