]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
enable proxy on ws fbb BERFBB-3246
authorsambufe <samuel.bufe@publicispixelpark.de>
Tue, 11 Apr 2017 08:20:23 +0000 (10:20 +0200)
committersambufe <samuel.bufe@publicispixelpark.de>
Tue, 11 Apr 2017 08:20:23 +0000 (10:20 +0200)
customer/fbb-webservice/webservice-berlin-airport-de.pixelpark.net.yaml

index 823bb2f3fb86c3b6bc3c7de4abcc13a27f00a056..bb847c5d7303ecf1a44bab4008bb104eb9edc2f1 100644 (file)
@@ -2,6 +2,7 @@
 infra::role: base
 infra::additional_classes:
   - infra::profile::apache_php
+  - apache::mod::proxy_http
 
 php::extensions:
   gd: {}
@@ -73,6 +74,12 @@ infra::profile::apache::pp_vhosts:
         auth_digest_provider: file
         auth_user_file: '/etc/httpd/htdigest'
         auth_require: 'valid-user'
+    rewrites:
+      - comment: 'BERFBB-3246'
+        rewrite_cond:
+          - '%%{ich-trickse}{QUERY_STRING} .*request=LOUNGE$'
+        rewrite_rule:
+          - '^(.*validateProductTicket.php.*)$ "http://tstws.berlin-airport.de/$1" [P]'
 
   webservice_ssl:
     port: 81
@@ -112,3 +119,9 @@ infra::profile::apache::pp_vhosts:
         auth_digest_provider: file
         auth_user_file: '/etc/httpd/htdigest'
         auth_require: 'valid-user'
+    rewrites:
+      - comment: 'BERFBB-3246'
+        rewrite_cond:
+          - '%%{ich-trickse}{QUERY_STRING} .*request=LOUNGE$'
+        rewrite_rule:
+          - '^(.*validateProductTicket.php.*)$ "https://tstws.berlin-airport.de/$1" [P]'