Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class profiles::henry {
- $apache_config = hiera_hash('profiles::henry::apache')
- $listen_interface = pick($apache_config[listen_interface], $::facts['networking']['primary'])
- $port = hiera('profiles::henry::61100')
- apache::vhost { $apache_config['domain_name']:
- ip => $::facts['networking']['interfaces'][$listen_interface]['ip'],
- port => 443,
- add_listen => false,
- ssl => true,
- ssl_cert => "${apache_config['ssl_certificate_path']}.cer",
- ssl_key => "${apache_config['ssl_certificate_path']}.key",
- ssl_chain => $apache_config['ssl_intermediates'],
- docroot => '/var/www/html', # dummy value in a proxy context
- proxy_preserve_host => true,
- allow_encoded_slashes => 'nodecode',
- request_headers => [
- "set X-Forwarded-Proto 'https' env=HTTPS",
- "set X-Forwarded-Port '443' env=HTTPS",
- ],
- proxy_pass => [
- {
- 'path' => '/',
- #some other port
- 'url' => 'http://localhost:61100/',
- 'keywords' => ['nocanon'],
- 'reverse_urls' => [
- "http://${apache_config['domain_name']}/",
- #some other port
- 'http://localhost:61100/',
- ],
- },
- ],
- rewrites => $rewrites,
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement