Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Intercept error pages and serve custom content #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header Host $host;
proxy_intercept_errors on;

location /ide/ {
proxy_pass https://patience.studentrobotics.org/ide/;
Expand Down Expand Up @@ -183,7 +184,7 @@ http {
error_page 500 502 503 504 @error_fallback;

location @missing_fallback {
proxy_pass https://srobo.github.io/website/missing/;
proxy_pass https://srobo.github.io/website/404.html;
}

location @error_fallback {
Expand Down