- infra::profile::apache
- apache::mod::proxy_ajp
- apache::mod::headers
+ - apache::mod::remoteip
- apache::mod::ssl
apache::mpm_module: event
+infra::profile::apache::htdigest:
+ staging:
+ staging: ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQEwDQYJKoZIhvcNAQEBBQAEggEAP7oxv6gMy/0tUEcd/ACYFYY/oB953bnXOnzmbB2knYEiZGmTi6fxOOcaMUiMJqNi1Y8qZNHlVBJPu8y0nHMYJzmlRZ+7MtnZcKcltlFu8xMQuLavTp71IELBns9EHsnTVBC1vZGSgGSR2JyxjT5jj5vrKDcy+CcRPrMwNL0fFXNsrCbGXSqFnsCZmUCABKpGFaJSRxW03es0N9FzwIqY++OJoVoSz6UmR5sEsgIvx06Yes1uSacalWv8Jy4rVRDhegI9V/l2MSNfQUm3taw5fIXIQInLJmB3/Mzbwedn5yPXjnzW/I/V55JHdaKzp/ObGbCvFgTH5TVYGiLOMbVQWDBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCA6AhRRo88L1UUUirLWzF5gCCaC0u3kk+Ei9GDRha9TMX0iJTTN9Bl8SiSPpDWfHEd9g==]
+
+apache::mod::remoteip::proxy_ips:
+ - '77.74.235.188'
+ - '77.74.235.189'
+
infra::profile::apache::pp_vhosts:
www:
docroot: '/var/www/mhk'
- stage-www-kueche-de.pixelpark.net
- stage-www01-mhk-kueche-de.pixelpark.net
ssl: false
+ directories:
+ - location1:
+ provider: location
+ path: '/'
+ auth_type: Digest
+ auth_name: staging
+ auth_digest_provider: file
+ auth_digest_algorithm: MD5
+ auth_user_file: '/etc/httpd/htdigest'
+ auth_require: 'valid-user'
+ require:
+ - local
+ - 'ip 195.185.213.186/32'
+ - 'ip 217.66.51.0/24'
+ - 'ip 83.125.19.254/32'
rewrites:
- to_ssl:
comment: 'all to https'
url: '/'
setenvif:
- 'HTTPS on HTTPS=on'
- access_log_format: lb_combined
+ access_log_format: remote_combined
error_documents:
- { error_code: 500 , document: "/errors/500.html" }
- { error_code: 501 , document: "/errors/500.html" }
- infra::profile::apache
- apache::mod::proxy_ajp
- apache::mod::headers
+ - apache::mod::remoteip
- apache::mod::ssl
apache::mpm_module: event
+infra::profile::apache::htdigest:
+ staging:
+ staging: ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQEwDQYJKoZIhvcNAQEBBQAEggEAP7oxv6gMy/0tUEcd/ACYFYY/oB953bnXOnzmbB2knYEiZGmTi6fxOOcaMUiMJqNi1Y8qZNHlVBJPu8y0nHMYJzmlRZ+7MtnZcKcltlFu8xMQuLavTp71IELBns9EHsnTVBC1vZGSgGSR2JyxjT5jj5vrKDcy+CcRPrMwNL0fFXNsrCbGXSqFnsCZmUCABKpGFaJSRxW03es0N9FzwIqY++OJoVoSz6UmR5sEsgIvx06Yes1uSacalWv8Jy4rVRDhegI9V/l2MSNfQUm3taw5fIXIQInLJmB3/Mzbwedn5yPXjnzW/I/V55JHdaKzp/ObGbCvFgTH5TVYGiLOMbVQWDBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCA6AhRRo88L1UUUirLWzF5gCCaC0u3kk+Ei9GDRha9TMX0iJTTN9Bl8SiSPpDWfHEd9g==]
+
+apache::mod::remoteip::proxy_ips:
+ - '77.74.235.188'
+ - '77.74.235.189'
+
infra::profile::apache::pp_vhosts:
www:
docroot: '/var/www/mhk'
- stage-www-kueche-de.pixelpark.net
- stage-www02-mhk-kueche-de.pixelpark.net
ssl: false
+ directories:
+ - location1:
+ provider: location
+ path: '/'
+ auth_type: Digest
+ auth_name: staging
+ auth_digest_provider: file
+ auth_digest_algorithm: MD5
+ auth_user_file: '/etc/httpd/htdigest'
+ auth_require: 'valid-user'
+ require:
+ - local
+ - 'ip 195.185.213.186/32'
+ - 'ip 217.66.51.0/24'
+ - 'ip 83.125.19.254/32'
rewrites:
- to_ssl:
comment: 'all to https'
url: '/'
setenvif:
- 'HTTPS on HTTPS=on'
- access_log_format: lb_combined
+ access_log_format: remote_combined
error_documents:
- { error_code: 500 , document: "/errors/500.html" }
- { error_code: 501 , document: "/errors/500.html" }
- infra::profile::apache
- apache::mod::proxy_ajp
- apache::mod::headers
+ - apache::mod::remoteip
- apache::mod::ssl
apache::mpm_module: event
+infra::profile::apache::htdigest:
+ staging:
+ staging: ENC[PKCS7,MIIBiQYJKoZIhvcNAQcDoIIBejCCAXYCAQAxggEhMIIBHQIBADAFMAACAQEwDQYJKoZIhvcNAQEBBQAEggEAP7oxv6gMy/0tUEcd/ACYFYY/oB953bnXOnzmbB2knYEiZGmTi6fxOOcaMUiMJqNi1Y8qZNHlVBJPu8y0nHMYJzmlRZ+7MtnZcKcltlFu8xMQuLavTp71IELBns9EHsnTVBC1vZGSgGSR2JyxjT5jj5vrKDcy+CcRPrMwNL0fFXNsrCbGXSqFnsCZmUCABKpGFaJSRxW03es0N9FzwIqY++OJoVoSz6UmR5sEsgIvx06Yes1uSacalWv8Jy4rVRDhegI9V/l2MSNfQUm3taw5fIXIQInLJmB3/Mzbwedn5yPXjnzW/I/V55JHdaKzp/ObGbCvFgTH5TVYGiLOMbVQWDBMBgkqhkiG9w0BBwEwHQYJYIZIAWUDBAEqBBCA6AhRRo88L1UUUirLWzF5gCCaC0u3kk+Ei9GDRha9TMX0iJTTN9Bl8SiSPpDWfHEd9g==]
+
+apache::mod::remoteip::proxy_ips:
+ - '77.74.235.188'
+ - '77.74.235.189'
+
infra::profile::apache::pp_vhosts:
www:
docroot: '/var/www/mhk'
- stage-www-kueche-de.pixelpark.net
- stage-www03-mhk-kueche-de.pixelpark.net
ssl: false
+ directories:
+ - location1:
+ provider: location
+ path: '/'
+ auth_type: Digest
+ auth_name: staging
+ auth_digest_provider: file
+ auth_digest_algorithm: MD5
+ auth_user_file: '/etc/httpd/htdigest'
+ auth_require: 'valid-user'
+ require:
+ - local
+ - 'ip 195.185.213.186/32'
+ - 'ip 217.66.51.0/24'
+ - 'ip 83.125.19.254/32'
rewrites:
- to_ssl:
comment: 'all to https'
url: '/'
setenvif:
- 'HTTPS on HTTPS=on'
- access_log_format: lb_combined
+ access_log_format: remote_combined
error_documents:
- { error_code: 500 , document: "/errors/500.html" }
- { error_code: 501 , document: "/errors/500.html" }