]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
BMAS-Typo3 - wartungsseite
authorOliver Böttcher <oliver.boettcher@pixelpark.com>
Wed, 15 Nov 2017 09:04:52 +0000 (10:04 +0100)
committerOliver Böttcher <oliver.boettcher@pixelpark.com>
Wed, 15 Nov 2017 09:04:52 +0000 (10:04 +0100)
customer/bmas-typo3/production.yaml
customer/bmas-typo3/test.yaml

index 6fcd67f390038541118c71fe3bd1c48f8fe60c1e..678c7534f3e73a81bb17e5f8b2cad51a57517816 100644 (file)
@@ -109,12 +109,11 @@ infra::profile::apache::pp_vhosts:
     servername: pdf.fachkraefte-offensive.de
     rewrites:
       - wrong_request:
-        comment: "Flasche Anfragen werden zur Hauptseite umgeleitet"
+        comment: "Falsche Anfragen werden zur Hauptseite umgeleitet"
         rewrite_cond:
           - '%%{ich-trickse}{REQUEST_URI} "!^/pdfgenerator"'
         rewrite_rule:
           - '^(.*)$ http://www.fachkraefte-offensive.de [R=301,L]'
-          #    custom_fragment: 'ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/srv/www/pdfgenerator/$1'
     directories:
       - directory_docroot:
         provider: 'directory'
index 18f514cfc0096bcf7b81fb89fc4c8f03207f6647..39c5a8bab48ff6bde67fdc79b8cce9d19c8c2407 100644 (file)
@@ -115,6 +115,17 @@ infra::profile::typo3::projects:
     php_admin_value:
       always_populate_raw_post_data: '-1'
       max_input_vars: 1500
+    aliases:
+      - { alias: /wartung , path: /var/www/wartung }
+    error_documents:
+      - { error_code: 503 , document: "/wartung/index.html" }
+    rewrites:
+      - alias:
+        comment: 'Maintenance'
+        rewrite_cond:
+          - '%%{ich-trickse}{REQUEST_URI} !=/wartung/index.html'
+        rewrite_rule:
+          - '^.*$ - [R=503,L]'
   unternehmenswertmensch:
     version: '7.6.22'
     site_path: '/srv/www/unternehmens-wert-mensch'
@@ -142,6 +153,17 @@ infra::profile::typo3::projects:
     php_admin_value:
       always_populate_raw_post_data: '-1'
       max_input_vars: 1500
+    aliases:
+      - { alias: /wartung , path: /var/www/wartung }
+    error_documents:
+      - { error_code: 503 , document: "/wartung/index.html" }
+    rewrites:
+      - alias:
+        comment: 'Maintenance'
+        rewrite_cond:
+          - '%%{ich-trickse}{REQUEST_URI} !=/wartung/index.html'
+        rewrite_rule:
+          - '^.*$ - [R=503,L]'
   inqacheck:
     version: '6.2.31'
     site_path: '/srv/www/inqa-check'
@@ -178,8 +200,18 @@ infra::profile::typo3::projects:
           - '%%{ich-trickse}{HTTPS} !=on'
         rewrite_rule:
           - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]'
+      - alias:
+        comment: 'Maintenance'
+        rewrite_cond:
+          - '%%{ich-trickse}{REQUEST_URI} !=/wartung/index.html'
+        rewrite_rule:
+          - '^.*$ - [R=503,L]'
     php_admin_value:
       memory_limit: 256M
+    aliases:
+      - { alias: /wartung , path: /var/www/wartung }
+    error_documents:
+      - { error_code: 503 , document: "/wartung/index.html" }
   fisnetzwerk:
     version: '7.6.22'
     site_path: '/srv/www/fisnetzwerk'
@@ -207,3 +239,14 @@ infra::profile::typo3::projects:
     php_admin_value:
       always_populate_raw_post_data: '-1'
       max_input_vars: 1500
+    aliases:
+      - { alias: /wartung , path: /var/www/wartung }
+    error_documents:
+      - { error_code: 503 , document: "/wartung/index.html" }
+    rewrites:
+      - alias:
+        comment: 'Maintenance'
+        rewrite_cond:
+          - '%%{ich-trickse}{REQUEST_URI} !=/wartung/index.html'
+        rewrite_rule:
+          - '^.*$ - [R=503,L]'