aboutsummaryrefslogtreecommitdiff
path: root/modules/private/websites/ludivinecassal/production.nix
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2019-12-24 14:00:21 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2019-12-24 14:00:21 +0100
commit33b5010fd03e27f02e97efdf9ddcb7c48ac3281c (patch)
tree9b9680826ed1d2141a7ad1680be58c78c301ded8 /modules/private/websites/ludivinecassal/production.nix
parent829ef7f1cb79f0171f9c5254278d93c48c44a7b5 (diff)
downloadNix-33b5010fd03e27f02e97efdf9ddcb7c48ac3281c.tar.gz
Nix-33b5010fd03e27f02e97efdf9ddcb7c48ac3281c.tar.zst
Nix-33b5010fd03e27f02e97efdf9ddcb7c48ac3281c.zip
Redirect websites landing pages
Diffstat (limited to 'modules/private/websites/ludivinecassal/production.nix')
-rw-r--r--modules/private/websites/ludivinecassal/production.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/private/websites/ludivinecassal/production.nix b/modules/private/websites/ludivinecassal/production.nix
index c6f0cf3..7cf00f0 100644
--- a/modules/private/websites/ludivinecassal/production.nix
+++ b/modules/private/websites/ludivinecassal/production.nix
@@ -85,6 +85,10 @@ in {
85 root = pcfg.webappDirs.ludivinecassal_prod; 85 root = pcfg.webappDirs.ludivinecassal_prod;
86 extraConfig = [ 86 extraConfig = [
87 '' 87 ''
88 RewriteEngine on
89 RewriteCond "%{HTTP_HOST}" "!^ludivinecassal\.com$" [NC]
90 RewriteRule ^(.+)$ https://ludivinecassal.com$1 [R=302,L]
91
88 <FilesMatch "\.php$"> 92 <FilesMatch "\.php$">
89 SetHandler "proxy:unix:${pcfg.phpListenPaths.ludivinecassal_prod}|fcgi://localhost" 93 SetHandler "proxy:unix:${pcfg.phpListenPaths.ludivinecassal_prod}|fcgi://localhost"
90 </FilesMatch> 94 </FilesMatch>