- comment: 'lanugage Rewrite use Env Vars'
rewrite_rule:
- '^/$ %%{ich-trickse}{REQUEST_SCHEME}://lp.dentsplysirona.com/%%{ich-trickse}{ENV:language}.html [R=301,L]'
+# Sirona top5.dentsplysirona.com
+ top5:
+ serveraliases:
+ - top5.dentsplysirona.com
+ docroot: '/opt/adobe/www/cache/content/landingpages'
+ cert_servername: 'wildcard.dentsplysirona.com'
+ cert_customer: 'sirona'
+ ssl_cert: '/etc/pki/tls/certs/wildcard.dentsplysirona.com-cert.pem'
+ ssl_key: '/etc/pki/tls/private/wildcard.dentsplysirona.com-key.pem'
+ ssl_chain: '/etc/pki/tls/certs/wildcard.dentsplysirona.com-cert.pem'
+ docroot_owner: apache
+ setenvif:
+ - 'Origin "http(s)?://(www\.)?(sirona-cerec-test.azurewebsites.net|sirona-cerec-stage.azurewebsites.net|cerec.com|sirona-cerec-de.local:3000)$" AccessControlAllowOrigin=$0$1'
+ setenvifnocase:
+ - 'Accept-Language ^.*$ language=en-us'
+ - 'Accept-Language ^de language=de-de'
+ headers:
+ - 'add Access-Control-Allow-Origin %%{ich-trickse}{AccessControlAllowOrigin}e env=AccessControlAllowOrigin'
+ aliases:
+ - { alias: /error_custom/ , path: /var/www/html/error_custom/ }
+ error_documents:
+ - { error_code: 404 , document: "/en-us/error-pages/404.html" }
+ - { error_code: 500 , document: "/en-us/error-pages/500.html" }
+ - { error_code: 502 , document: "/error_custom/error.shtml" }
+ - { error_code: 503 , document: "/error_custom/error.shtml" }
+ directories:
+ # docroot:
+ - provider: directory
+ path: '/opt/adobe/www/cache/content/landingpages'
+ sethandler: dispatcher-handler
+ options:
+ - FollowSymLinks
+ # error_documents
+ - provider: directory
+ path: /var/www/html/error_custom/
+ options:
+ - +Includes
+ - provider: locationmatch
+ path: '^/de-de/'
+ error_documents:
+ - { error_code: 404 , document: "/de-de/error-pages/404.html" }
+ - { error_code: 500 , document: "/de-de/error-pages/500.html" }
+ rewrites:
+ - comment: 'http to https'
+ rewrite_cond:
+ - '%%{ich-trickse}{HTTPS} !=on'
+ rewrite_rule:
+ - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]'
+ - comment: 'Rewrite / to top5.html'
+ rewrite_rule:
+ - '^/$ %%{ich-trickse}{REQUEST_SCHEME}://top5.dentsplysirona.com/en/top5.html [R=301,L]'
# Sirona www.3dsummit.com
3dsummit:
serveraliases: