Redirect subpages like ./well-known
This commit is contained in:
parent
18324820f4
commit
14856f51a0
|
@ -10,8 +10,6 @@
|
||||||
serverAliases = [ "www2.pvv.org" ];
|
serverAliases = [ "www2.pvv.org" ];
|
||||||
|
|
||||||
locations = {
|
locations = {
|
||||||
# Redirect the main website
|
|
||||||
"= /".return = "301 https://www.pvv.ntnu.no/";
|
|
||||||
|
|
||||||
# Proxy home directories
|
# Proxy home directories
|
||||||
"/~" = {
|
"/~" = {
|
||||||
|
@ -39,8 +37,11 @@
|
||||||
"/diverse/abuse.php".return = "301 https://www.pvv.ntnu.no/pvv/CERT/Abuse";
|
"/diverse/abuse.php".return = "301 https://www.pvv.ntnu.no/pvv/CERT/Abuse";
|
||||||
"/nerds/".return = "301 https://www.pvv.ntnu.no/pvv/Nerdepizza";
|
"/nerds/".return = "301 https://www.pvv.ntnu.no/pvv/Nerdepizza";
|
||||||
|
|
||||||
# TODO: Redirect web main
|
# TODO: Redirect webmail
|
||||||
"/webmail".return = "301 https://webmail.pvv.ntnu.no/squirrelmail";
|
"/webmail".return = "301 https://webmail.pvv.ntnu.no/squirrelmail";
|
||||||
|
|
||||||
|
# Redirect everything else to the main website
|
||||||
|
"/".return = "301 https://www.pvv.ntnu.no$request_uri";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue