X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=modules%2Fprivate%2Fwebsites%2Fpiedsjaloux%2Fproduction.nix;h=e4e29c710d29f2ce242088e8f99ffca17dfeea04;hb=33b5010fd03e27f02e97efdf9ddcb7c48ac3281c;hp=28f85eb180474318204000dc6e4004bd00dd1876;hpb=ab8f306d7c2c49b8116e1af7b355ed2384617ed9;p=perso%2FImmae%2FConfig%2FNix.git 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 { root = pcfg.webappDirs.piedsjaloux_prod; extraConfig = [ '' + RewriteEngine on + RewriteCond "%{HTTP_HOST}" "!^www.piedsjaloux\.fr$" [NC] + RewriteRule ^(.+)$ https://www.piedsjaloux.fr$1 [R=302,L] + SetHandler "proxy:unix:${pcfg.phpListenPaths.piedsjaloux_prod}|fcgi://localhost"