diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-24 14:00:21 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-24 14:00:21 +0100 |
commit | 33b5010fd03e27f02e97efdf9ddcb7c48ac3281c (patch) | |
tree | 9b9680826ed1d2141a7ad1680be58c78c301ded8 /modules/private/websites/piedsjaloux | |
parent | 829ef7f1cb79f0171f9c5254278d93c48c44a7b5 (diff) | |
download | Nix-33b5010fd03e27f02e97efdf9ddcb7c48ac3281c.tar.gz Nix-33b5010fd03e27f02e97efdf9ddcb7c48ac3281c.tar.zst Nix-33b5010fd03e27f02e97efdf9ddcb7c48ac3281c.zip |
Redirect websites landing pages
Diffstat (limited to 'modules/private/websites/piedsjaloux')
-rw-r--r-- | modules/private/websites/piedsjaloux/production.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/private/websites/piedsjaloux/production.nix b/modules/private/websites/piedsjaloux/production.nix index 28f85eb..e4e29c7 100644 --- a/modules/private/websites/piedsjaloux/production.nix +++ b/modules/private/websites/piedsjaloux/production.nix | |||
@@ -74,6 +74,10 @@ in { | |||
74 | root = pcfg.webappDirs.piedsjaloux_prod; | 74 | root = pcfg.webappDirs.piedsjaloux_prod; |
75 | extraConfig = [ | 75 | extraConfig = [ |
76 | '' | 76 | '' |
77 | RewriteEngine on | ||
78 | RewriteCond "%{HTTP_HOST}" "!^www.piedsjaloux\.fr$" [NC] | ||
79 | RewriteRule ^(.+)$ https://www.piedsjaloux.fr$1 [R=302,L] | ||
80 | |||
77 | <FilesMatch "\.php$"> | 81 | <FilesMatch "\.php$"> |
78 | SetHandler "proxy:unix:${pcfg.phpListenPaths.piedsjaloux_prod}|fcgi://localhost" | 82 | SetHandler "proxy:unix:${pcfg.phpListenPaths.piedsjaloux_prod}|fcgi://localhost" |
79 | </FilesMatch> | 83 | </FilesMatch> |