- 'HTTPS on X-Forwarded-Proto=https'
- 'HTTPS on HTTPS=on'
- 'X-Forwarded-For ^80.146.239.2 admin_ip_range'
- - 'X-Forwarded-For ^109.86.229.215 admin_ip_range'
- - 'X-Forwarded-For ^195.69.134.114 admin_ip_range'
- - 'X-Forwarded-For ^88.99.67.38 admin_ip_range'
directories:
- provider: directory
path: '/var/www/spar-checker/sparchecker-frontend/'
- 'env admin_ip_range'
error_documents:
- { error_code: 401 , document: "/401.html" }
+ - { error_code: 403 , document: "/403.html" }
+ - { error_code: 404 , document: "/404.html" }
+ - { error_code: 500 , document: "/500.html" }
- provider: directory
path: '/var/www/spar-checker/sparchecker-backend/public/sfp/'
addhandlers:
rewrite_cond:
- '%%{ich-trickse}{HTTP:HTTPS} !=on'
rewrite_rule:
- - '^(.*)$ https://spar-checker-de.pixelpark.net$1 [R=301,L]'
+ - '^(.*)$ https://www.spar-checker.de$1 [R=301,L]'
- comment: 'Alle Aliase auf Servername'
rewrite_cond:
- - '%%{ich-trickse}{HTTP_HOST} !^spar-checker-de.pixelpark.net$ [NC]'
+ - '%%{ich-trickse}{HTTP_HOST} !^www\.spar-checker\.de$ [NC]'
rewrite_rule:
- - '^(.*)$ https://spar-checker-de.pixelpark.net$1 [R=301,L]'
+ - '^(.*)$ https://www.spar-checker.de [R=301,L]'
infra::profile::cron::cronjobs:
clear_tokens:
- 'HTTPS on X-Forwarded-Proto=https'
- 'HTTPS on HTTPS=on'
- 'X-Forwarded-For ^80.146.239.2 admin_ip_range'
- - 'X-Forwarded-For ^109.86.229.215 admin_ip_range'
- - 'X-Forwarded-For ^195.69.134.114 admin_ip_range'
- - 'X-Forwarded-For ^88.99.67.38 admin_ip_range'
directories:
- provider: directory
path: '/var/www/spar-checker/sparchecker-frontend/'
path: '/api'
- provider: location
path: '/sfp'
-# auth_type: Digest
-# auth_name: 'Manager-Interface'
-# auth_digest_provider: file
-# auth_digest_algorithm: MD5
-# auth_user_file: '/etc/httpd/spk.managed.htdigest'
+ auth_type: Digest
+ auth_name: 'Manager-Interface'
+ auth_digest_provider: file
+ auth_digest_algorithm: MD5
+ auth_user_file: '/etc/httpd/spk.managed.htdigest'
require:
-# - 'valid-user'
+ - 'valid-user'
- 'env admin_ip_range'
error_documents:
- { error_code: 401 , document: "/401.html" }
+ - { error_code: 403 , document: "/403.html" }
+ - { error_code: 404 , document: "/404.html" }
+ - { error_code: 500 , document: "/500.html" }
- provider: directory
path: '/var/www/spar-checker/sparchecker-backend/public/sfp/'
addhandlers: