certMainHost = "osteopathe-cc.fr";
hosts = ["osteopathe-cc.fr" "www.osteopathe-cc.fr" ];
root = chloe.apache.root;
- extraConfig = [ chloe.apache.vhostConf ];
+ extraConfig = [
+ ''
+ RewriteEngine On
+ RewriteCond "%{HTTP_HOST}" "!^www\.osteopathe-cc\.fr$" [NC]
+ RewriteRule ^(.+)$ https://www.osteopathe-cc.fr$1 [R=302,L]
+ ''
+ chloe.apache.vhostConf
+ ];
};
services.websites.env.production.watchPaths = [
"/var/secrets/webapps/${chloe.app.environment}-chloe"
root = pcfg.webappDirs.ludivinecassal_prod;
extraConfig = [
''
+ RewriteEngine on
+ RewriteCond "%{HTTP_HOST}" "!^ludivinecassal\.com$" [NC]
+ RewriteRule ^(.+)$ https://ludivinecassal.com$1 [R=302,L]
+
<FilesMatch "\.php$">
SetHandler "proxy:unix:${pcfg.phpListenPaths.ludivinecassal_prod}|fcgi://localhost"
</FilesMatch>
root = pcfg.webappDirs.piedsjaloux_prod;
extraConfig = [
''
+ RewriteEngine on
+ RewriteCond "%{HTTP_HOST}" "!^www.piedsjaloux\.fr$" [NC]
+ RewriteRule ^(.+)$ https://www.piedsjaloux.fr$1 [R=302,L]
+
<FilesMatch "\.php$">
SetHandler "proxy:unix:${pcfg.phpListenPaths.piedsjaloux_prod}|fcgi://localhost"
</FilesMatch>