Skip to content
Snippets Groups Projects
Commit 7255c75e authored by Andreas Alvarsson's avatar Andreas Alvarsson
Browse files

Enable Apache VHost

parent 994f18c4
No related branches found
No related tags found
2 merge requests!2Merge till Production,!1Apache rewrite
......@@ -67,26 +67,27 @@ class skadereg {
# $chain = "/etc/pki/tls/certs/chain-${::fqdn}.pem"
# $key = "/etc/pki/tls/private/${::fqdn}.key"
# apache::vhost { 'default:80':
# servername => $::fqdn,
# default_vhost => true,
# port => '80',
# docroot => '/var/www/html',
# redirect_status => 'permanent',
# redirect_dest => "https://${::fqdn}/",
# }
# apache::vhost { "${::fqdn}:443":
# servername => $::fqdn,
# port => '443',
# ssl => true,
# ssl_cert => $cert,
# ssl_chain => $chain,
# ssl_key => $key,
# headers => ['Set Strict-Transport-Security "max-age=31536000"',],
# docroot => '/var/www',
# proxy_preserve_host => true,
# allow_encoded_slashes => 'on',
# }
apache::vhost { 'default:80':
servername => $::fqdn,
default_vhost => true,
port => '80',
docroot => '/var/www/html',
redirect_status => 'permanent',
redirect_dest => "https://${::fqdn}/",
}
apache::vhost { "${::fqdn}:443":
servername => $::fqdn,
port => '443',
ssl => true,
# ssl_cert => $cert,
# ssl_chain => $chain,
# ssl_key => $key,
headers => ['Set Strict-Transport-Security "max-age=31536000"',],
docroot => '/var/www/skadereg',
proxy_preserve_host => true,
allow_encoded_slashes => 'on',
}
include ::yum::centos_scl
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment