mirror of
				https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
				synced 2025-10-31 09:18:04 +01:00 
			
		
		
		
	Redirect subpages like ./well-known, add @-domains
This commit is contained in:
		
							parent
							
								
									d5985e02f3
								
							
						
					
					
						commit
						d900dc1b1b
					
				| @ -2,17 +2,11 @@ | ||||
| { | ||||
|   services.nginx.virtualHosts = { | ||||
|     "www2.pvv.ntnu.no" = { | ||||
|       serverAliases = [ "www2.pvv.org" "pvv.ntnu.no" "pvv.org" ]; | ||||
|       addSSL = true; | ||||
|       enableACME = true; | ||||
| 
 | ||||
|       # TODO after updating the corresponding DNS record: | ||||
|       # serverAliases = [ "www2.pvv.org" "pvv.ntnu.no" "pvv.org" ] | ||||
|       serverAliases = [ "www2.pvv.org" ]; | ||||
| 
 | ||||
|       locations = { | ||||
|         # Redirect the main website | ||||
|         "= /".return = "301 https://www.pvv.ntnu.no/"; | ||||
| 
 | ||||
|         # Proxy home directories | ||||
|         "/~" = { | ||||
|           extraConfig = '' | ||||
| @ -39,8 +33,11 @@ | ||||
|         "/diverse/abuse.php".return = "301 https://www.pvv.ntnu.no/pvv/CERT/Abuse"; | ||||
|         "/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"; | ||||
| 
 | ||||
|         # Redirect everything else to the main website | ||||
|         "/".return = "301 https://www.pvv.ntnu.no$request_uri"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 h7x4
							h7x4