]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
marketing-publicis-ai add rewrites
authorAndreas Gerstenberg <gerstenberg@pixelpark.com>
Fri, 7 Apr 2017 10:30:12 +0000 (12:30 +0200)
committerAndreas Gerstenberg <gerstenberg@pixelpark.com>
Fri, 7 Apr 2017 10:30:12 +0000 (12:30 +0200)
customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml

index 6cecf7a11852e099f051de8d255cefa176d1cec9..f7e9373944710215aa46b74bb1cba6ca8e440b18 100644 (file)
@@ -99,18 +99,33 @@ infra::profile::apache::pp_vhosts:
         allow_override:
           - All
         directoryindex: index.php index.html
-      - location1:
-        provider: location
-        path: '/'
-        auth_type: Digest
-        auth_name: server
-        auth_digest_provider: file
-        auth_digest_algorithm: MD5
-        auth_user_file: '/etc/httpd/htdigest'
-        auth_require: 'valid-user'
+#      - location1:
+#        provider: location
+#        path: '/'
+#        auth_type: Digest
+#        auth_name: server
+#        auth_digest_provider: file
+#        auth_digest_algorithm: MD5
+#        auth_user_file: '/etc/httpd/htdigest'
+#        auth_require: 'valid-user'
     setenv:
       - 'MAUTIC_ENV live'
+    rewrites:
+      - alias:
+        comment: 'Weiterleitung auf https'
+        rewrite_cond:
+          - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+        rewrite_rule:
+          - '^(.*)$ https://campaign.pepperl-fuchs.de$1 [L,R=301]'
 
+      - alias1:
+        comment: 'Weiterleitung auf Unterseite'
+        rewrite_cond:
+          - '%%{ich-trickse}{HTTP_HOST} ^campaign.pepperl-fuchs.de$ [NC]'
+        rewrite_rule:
+          - '^(/?)$ https://campaign.pepperl-fuchs.de//feldbusmodule$1 [L,R=301]'
+    setenvif_ssl:
+      - 'HTTPS on HTTPS=on'
 
 infra::profile::cron::cronjobs:
   mautic_update: