fix: cache's 404
This commit is contained in:
parent
56cc86052f
commit
b2ee468733
1 changed files with 3 additions and 2 deletions
|
|
@ -17,11 +17,12 @@ in {
|
|||
|
||||
services.nginx.virtualHosts.${domain} = ssl // {
|
||||
locations."/".proxyPass = "http://127.0.0.1:1337";
|
||||
locations."= /".return = "301 https://thegeneralist01.com/404";
|
||||
locations."= /".return = "301 @404";
|
||||
locations."@404".return = "404 https://thegeneralist01.com/404";
|
||||
|
||||
extraConfig = /* nginx */ ''
|
||||
proxy_intercept_errors on;
|
||||
error_page 404 = thegeneralist01.com/404.html;
|
||||
error_page 404 = @404;
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue