infra::role: base_for_old_systems # because we can't install xymon
infra::additional_classes:
- accounts
+ - infra::profile::apache
+ - apache::mod::proxy_ajp
+ - apache::mod::headers
+ - apache::mod::remoteip
+
+logstash::drop_grokparsefailure: false
+logstash::generic_resource:
+ catalina:
+ resource: file
+ order: 10 # Input
+ parameters:
+ path: '/var/lib/tomcat/catalina/odt-cms/logs/catalina.out'
+ type: tomcat
+ tags:
+ - "odt-cms"
+ - "%{customer}"
+ - "%{environment}"
+ codec:
+ type: multiline
+ what: previous
+ pattern: "^%%{ich-trickse}{MONTH} %%{ich-trickse}{MONTHDAY}"
+ negate: true
+ opencms:
+ resource: file
+ order: 10 # Input
+ parameters:
+ path: '/var/lib/tomcat/catalina/odt-cms/webapps/ROOT/WEB-INF/logs/opencms.log'
+ type: opencms
+ tags:
+ - "odt-cms"
+ - "%{customer}"
+ - "%{environment}"
+ codec:
+ type: multiline
+ what: previous
+ pattern: "^%%{ich-trickse}{MONTHDAY} %%{ich-trickse}{MONTH}"
+ negate: true
+ tomcat_access:
+ resource: file
+ order: 10 # Input
+ parameters:
+ path: '/var/lib/tomcat/catalina/odt-cms/logs/localhost_access_log.*'
+ type: tomcat-access
+ tags:
+ - "odt-cms"
+ - "%{customer}"
+ - "%{environment}"
+ tomcat_access_filter:
+ condition: 'if [type] == "tomcat-access"'
+ resource: grok
+ order: 40 # Filter
+ parameters:
+ match:
+ - message
+ - '%%{ich-trickse}{COMMONAPACHELOG}'
+
+apache::mod:proxy:
+ proxy_via: 'Off'
+
+apache::mod::remoteip::proxy_ips:
+ - '93.188.107.252'
+ - '93.188.107.253'
+
+apache::mod::expires::expires_by_type:
+ - { application/javascript: "access plus 1 year" }
+ - { application/x-javascript: "access plus 1 year" }
+ - { text/css: "access plus 1 year" }
+ - { image/jpeg: "access plus 1 month" }
+ - { image/png: "access plus 1 month" }
+ - { image/bmp: "access plus 1 month" }
+ - { image/gif: "access plus 1 month" }
+ - { image/vnd.microsoft.icon: "access plus 1 year" }
+ - { image/x-icon: "access plus 1 year" }
+ - { application/font-woff: "access plus 1 month" }
+ - { application/vnd.ms-fontobject: "access plus 1 month" }
+ - { image/svg+xml: "access plus 1 month" }
+ - { application/font-sfnt: "access plus 1 month" }
+ - { application/vnd.oasis.opendocument.formula-template: "access plus 1 month" }
+ - { application/font-woff2: "access plus 1 month" }
+ - { video/mp4: "access plus 1 month" }
+ - { video/ogv: "access plus 1 month" }
+ - { video/webm: "access plus 1 month" }
+
+infra::profile::apache::pp_vhosts:
+ cms:
+ setenvif:
+ - 'HTTPS on HTTPS=on'
+ docroot: '/var/lib/tomcat/catalina/odt-cms/webapps/ROOT'
+ docroot_owner: tomcat
+ docroot_group: tomcat
+ servername: emmt-cms.daimler.com
+ serveraliases:
+ - odt-cms.daimler.com
+ - cms-emmt-daimler-com.pixelpark.net
+ - cms-odt-daimler-com.pixelpark.net
+ ssl: false
+ rewrites:
+ - opencms_to_slash:
+ comment: '/opencms to /'
+ rewrite_rule:
+ - '^/opencms(/)?$ / [R,L]'
+ - https:
+ comment: 'all to https'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/system/(.*)$ https://%%{ich-trickse}{SERVER_NAME}/system/$1 [L,R=301]'
+ - login:
+ rewrite_rule:
+ - '^(/)?$ https://%%{ich-trickse}{SERVER_NAME}/system/login [L,R=301]'
+ - 404handler_non_https:
+ comment: 'missing export to opencms'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/export/(.*) [NC]'
+ - '%%{ich-trickse}{DOCUMENT_ROOT}%%{ich-trickse}{REQUEST_FILENAME} !-f'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8080/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
+ - 404handler_https:
+ comment: 'missing export to opencms'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/export/(.*) [NC]'
+ - '%%{ich-trickse}{DOCUMENT_ROOT}%%{ich-trickse}{REQUEST_FILENAME} !-f'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8081/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
+ - proxy_non_https:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8080/opencms$1 [P,L]'
+ - proxy_https:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8081/opencms$1 [P,L]'
+ - proxy_non_https_fix:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/opencms/(.*)$ http://localhost:8080/opencms/$1 [P,L]'
+ - proxy_https_fix:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/opencms/(.*)$ http://localhost:8081/opencms/$1 [P,L]'
+ proxy_preserve_host: true
+ directories:
+ - access-control-fonts:
+ provider: filesmatch
+ path: '\.(ttf|ttc|otf|eot|woff|svg)$'
+ headers:
+ - 'set Access-Control-Allow-Origin "*"'
+ access_log_format: remote_combined
+ custom_fragment: |
+ ProxyTimeout 3600
+ mb:
+ setenvif:
+ - 'HTTPS on HTTPS=on'
+ docroot: '/var/lib/tomcat/catalina/odt-cms/webapps/ROOT'
+ docroot_owner: tomcat
+ docroot_group: tomcat
+ servername: newsletter.mercedes-benz.de
+ serveraliases:
+ - newsletter-mercedes-benz-de.pixelpark.net
+ ssl: false
+ rewrites:
+ - opencms_to_slash:
+ comment: '/opencms to /'
+ rewrite_rule:
+ - '^/opencms/(.*)$ /$1 [R,L]'
+ - https_forms:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/(r/|w/|anmeldung|forms_retail|forms_wholesale) [NC]'
+ rewrite_rule:
+ - '^(.*)$ https://%%{ich-trickse}{HTTP_HOST}$1 [R=301,L,QSA,NE]'
+ - 404handler_non_https:
+ comment: 'missing export to opencms'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/export/(.*) [NC]'
+ - '%%{ich-trickse}{DOCUMENT_ROOT}%%{ich-trickse}{REQUEST_FILENAME} !-f'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8082/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
+ - 404handle_https:
+ comment: 'missing export to opencms'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/export/(.*) [NC]'
+ - '%%{ich-trickse}{DOCUMENT_ROOT}%%{ich-trickse}{REQUEST_FILENAME} !-f'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8083/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
+ - jsession_id:
+ rewrite_rule:
+ - '^(.*);jsessionid=[A-Za-z0-9]+(.*)$ $1$2 [L,R=301]'
+ - rewrite_slash:
+ rewrite_rule:
+ - '^(/)?$ http://www.mercedes-benz.de [R=301,L]'
+ - proxy_openemm:
+ rewrite_rule:
+ - '^/content/(r\.html|g\.html|form\.do) http://93.188.107.234:8081/$1 [P,L,QSA,NE]'
+ - proxy_forms_r_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/r/(.*) http://localhost:8082/opencms/forms_retail/$1 [P,L]'
+ - proxy_forms_anmeldung_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/anmeldung/?$ http://localhost:8082/opencms/forms_wholesale/anmeldung [P,L]'
+ - proxy_forms_w_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/w/(.*) http://localhost:8082/opencms/forms_wholesale/$1 [P,L]'
+ - proxy_forms_promo_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/w/abmeldung_promo http://localhost:8082/opencms/forms_wholesale/abmeldung_promo [P,L]'
+ - proxy_forms_trapo_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/anmeldung-transporter http://localhost:8082/opencms/forms_mbtrapo_wholesale/anmeldung [P,L]'
+ - proxy_forms_r_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/r/(.*) http://localhost:8083/opencms/forms_retail/$1 [P,L]'
+ - proxy_forms_anmeldung_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/anmeldung/?$ http://localhost:8083/opencms/forms_wholesale/anmeldung [P,L]'
+ - proxy_forms_w_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/w/(.*) http://localhost:8083/opencms/forms_wholesale/$1 [P,L]'
+ - proxy_forms_promo_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/w/abmeldung_promo http://localhost:8083/opencms/forms_wholesale/abmeldung_promo [P,L]'
+ - proxy_forms_trapo_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/anmeldung-transporter http://localhost:8083/opencms/forms_mbtrapo_wholesale/anmeldung [P,L]'
+ - proxy_non_https:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8082/opencms$1 [P,L]'
+ - proxy_https:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8083/opencms$1 [P,L]'
+ proxy_preserve_host: true
+ directories:
+ - access-control-fonts:
+ provider: filesmatch
+ path: '\.(ttf|ttc|otf|eot|woff|svg)$'
+ headers:
+ - 'set Access-Control-Allow-Origin "*"'
+ access_log_format: remote_combined
+ smart:
+ setenvif:
+ - 'HTTPS on HTTPS=on'
+ docroot: '/var/lib/tomcat/catalina/odt-cms/webapps/ROOT'
+ docroot_owner: tomcat
+ docroot_group: tomcat
+ servername: newsletter.smart.de
+ serveraliases:
+ - newsletter-smart-de.pixelpark.net
+ ssl: false
+ rewrites:
+ - opencms_to_slash:
+ comment: '/opencms to /'
+ rewrite_rule:
+ - '^/opencms/(.*)$ /$1 [R,L]'
+ - https_forms:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/(r/|w/|anmeldung|forms_retail|forms_wholesale) [NC]'
+ rewrite_rule:
+ - '^(.*)$ https://%%{ich-trickse}{HTTP_HOST}$1 [R=301,L,QSA,NE]'
+ - 404handler_non_https:
+ comment: 'missing export to opencms'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/export/(.*) [NC]'
+ - '%%{ich-trickse}{DOCUMENT_ROOT}%%{ich-trickse}{REQUEST_FILENAME} !-f'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8084/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
+ - 404handle_https:
+ comment: 'missing export to opencms'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/export/(.*) [NC]'
+ - '%%{ich-trickse}{DOCUMENT_ROOT}%%{ich-trickse}{REQUEST_FILENAME} !-f'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8085/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
+ - jsession_id:
+ rewrite_rule:
+ - '^(.*);jsessionid=[A-Za-z0-9]+(.*)$ $1$2 [L,R=301]'
+ - rewrite_slash:
+ rewrite_rule:
+ - '^(/)?$ http://www.smart.de [R=301,L]'
+ - proxy_openemm:
+ rewrite_rule:
+ - '^/content/(r\.html|g\.html|form\.do) http://93.188.107.234:8081/$1 [P,L,QSA,NE]'
+ - proxy_forms_r_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/r/(.*) http://localhost:8084/opencms/forms_retail/$1 [P,L]'
+ - proxy_forms_anmeldung_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/anmeldung http://localhost:8084/opencms/forms_wholesale/anmeldung [P,L]'
+ - proxy_forms_w_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/w/(.*) http://localhost:8084/opencms/forms_wholesale/$1 [P,L]'
+ - proxy_forms_r_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/r/(.*) http://localhost:8085/opencms/forms_retail/$1 [P,L]'
+ - proxy_forms_anmeldung_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/anmeldung http://localhost:8085/opencms/forms_wholesale/anmeldung [P,L]'
+ - proxy_forms_w_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/w/(.*) http://localhost:8085/opencms/forms_wholesale/$1 [P,L]'
+ - proxy_forms_promo_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/w/abmeldung_promo http://localhost:8085/opencms/forms_wholesale/abmeldung_promo [P,L]'
+ - proxy_forms_trapo_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/anmeldung-transporter http://localhost:8085/opencms/forms_trapo_wholesale/anmeldung [P,L]'
+ - proxy_non_https:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8084/opencms$1 [P,L]'
+ - proxy_https:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8085/opencms$1 [P,L]'
+ proxy_preserve_host: true
+ directories:
+ - access-control-fonts:
+ provider: filesmatch
+ path: '\.(ttf|ttc|otf|eot|woff|svg)$'
+ headers:
+ - 'set Access-Control-Allow-Origin "*"'
+ access_log_format: remote_combined
+ tw:
+ setenvif:
+ - 'HTTPS on HTTPS=on'
+ docroot: '/var/lib/tomcat/catalina/odt-cms/webapps/ROOT'
+ docroot_owner: tomcat
+ docroot_group: tomcat
+ servername: newsletter.truckworks.de
+ serveraliases:
+ - newsletter-truckworks-de.pixelpark.net
+ ssl: false
+ rewrites:
+ - opencms_to_slash:
+ comment: '/opencms to /'
+ rewrite_rule:
+ - '^/opencms/(.*)$ /$1 [R,L]'
+ - https_forms:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/(r/|w/|anmeldung|forms_retail|forms_wholesale) [NC]'
+ rewrite_rule:
+ - '^(.*)$ https://%%{ich-trickse}{HTTP_HOST}$1 [R=301,L,QSA,NE]'
+ - 404handler_non_https:
+ comment: 'missing export to opencms'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/export/(.*) [NC]'
+ - '%%{ich-trickse}{DOCUMENT_ROOT}%%{ich-trickse}{REQUEST_FILENAME} !-f'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8086/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
+ - 404handle_https:
+ comment: 'missing export to opencms'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} ^/export/(.*) [NC]'
+ - '%%{ich-trickse}{DOCUMENT_ROOT}%%{ich-trickse}{REQUEST_FILENAME} !-f'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8087/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]'
+ - jsession_id:
+ rewrite_rule:
+ - '^(.*);jsessionid=[A-Za-z0-9]+(.*)$ $1$2 [L,R=301]'
+ - rewrite_slash:
+ rewrite_rule:
+ - '^(/)?$ http://www.truckworks.de [R=301,L]'
+ - proxy_openemm:
+ rewrite_rule:
+ - '^/content/(r\.html|g\.html|form\.do) http://93.188.107.234:8081/$1 [P,L,QSA,NE]'
+ - proxy_forms_r_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/r/(.*) http://localhost:8086/opencms/forms_retail/$1 [P,L]'
+ - proxy_forms_anmeldung_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/anmeldung http://localhost:8086/opencms/forms_wholesale/anmeldung [P,L]'
+ - proxy_forms_w_nonssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^/w/(.*) http://localhost:8086/opencms/forms_wholesale/$1 [P,L]'
+ - proxy_forms_r_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/r/(.*) http://localhost:8087/opencms/forms_retail/$1 [P,L]'
+ - proxy_forms_anmeldung_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/anmeldung http://localhost:8087/opencms/forms_wholesale/anmeldung [P,L]'
+ - proxy_forms_w_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/w/(.*) http://localhost:8087/opencms/forms_wholesale/$1 [P,L]'
+ - proxy_forms_promo_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/w/abmeldung_promo http://localhost:8087/opencms/forms_wholesale/abmeldung_promo [P,L]'
+ - proxy_forms_trapo_ssl:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ rewrite_rule:
+ - '^/anmeldung-transporter http://localhost:8087/opencms/forms_trapo_wholesale/anmeldung [P,L]'
+ - proxy_non_https:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8086/opencms$1 [P,L]'
+ - proxy_https:
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} =on [NC]'
+ - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'
+ rewrite_rule:
+ - '^(.*)$ http://localhost:8087/opencms$1 [P,L]'
+ proxy_preserve_host: true
+ directories:
+ - access-control-fonts:
+ provider: filesmatch
+ path: '\.(ttf|ttc|otf|eot|woff|svg)$'
+ headers:
+ - 'set Access-Control-Allow-Origin "*"'
+ access_log_format: remote_combined
+ kampagnen:
+ setenvif:
+ - 'HTTPS on HTTPS=on'
+ servername: kampagnen.mercedes-benz.de
+ serveraliases:
+ - kampagnen-mercedes-benz-de.pixelpark.net
+ docroot: /var/www/html
+ ssl: false
+ proxy_preserve_host: true
+ rewrites:
+ - fan-klasse-roadshow-redirect:
+ rewrite_rule:
+ - '^/2039/fan-klasse_roadshow_2016$ http://www.mercedes-benz.de/content/germany/mpc/mpc_germany_website/de/home_mpc/passengercars/home/mercedes-benz_fan-klasse0.html?CFC_cK=1459929029170 [R=302,L]'
+ - https:
+ comment: 'all to https'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+ rewrite_rule:
+ - '^(.*)$ https://%%{ich-trickse}{HTTP_HOST}$1 [L,R=301]'
+ proxy_pass:
+ - { path: /, url: 'http://localhost:9000/ retry=0' }
+ access_log_format: remote_combined
+ bilder:
+ servername: bilder.mercedes-benz.de
+ serveraliases:
+ - bilder-mercedes-benz-de.pixelpark.net
+ - bilder-emmt-mercedes-benz-de.pixelpark.net
+ docroot: /home/ftp/ftpuser1/docs
+ ssl: false