diff options
Diffstat (limited to 'modules/private/websites/ludivinecassal/production.nix')
-rw-r--r-- | modules/private/websites/ludivinecassal/production.nix | 4 |
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> |