Merge "Fixes vhost and vhost::proxy on Precise."
This commit is contained in:
commit
3d6423ebdf
@ -66,6 +66,12 @@ define httpd::vhost(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# The Apache mod_version module only needs to be enabled on Ubuntu 12.04
|
||||||
|
# as it comes compiled and enabled by default on newer OS, including CentOS
|
||||||
|
if !defined(Httpd::Mod['version']) and $::operatingsystem == 'Ubuntu' and $::operatingsystemrelease == '12.04' {
|
||||||
|
httpd::mod { 'version': ensure => present }
|
||||||
|
}
|
||||||
|
|
||||||
file { "${priority}-${name}.conf":
|
file { "${priority}-${name}.conf":
|
||||||
path => "${httpd::params::vdir}/${priority}-${name}.conf",
|
path => "${httpd::params::vdir}/${priority}-${name}.conf",
|
||||||
content => template($template),
|
content => template($template),
|
||||||
|
@ -45,6 +45,12 @@ define httpd::vhost::proxy (
|
|||||||
include ::httpd::ssl
|
include ::httpd::ssl
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# The Apache mod_version module only needs to be enabled on Ubuntu 12.04
|
||||||
|
# as it comes compiled and enabled by default on newer OS, including CentOS
|
||||||
|
if !defined(Httpd::Mod['version']) and $::operatingsystem == 'Ubuntu' and $::operatingsystemrelease == '12.04' {
|
||||||
|
httpd::mod { 'version': ensure => present }
|
||||||
|
}
|
||||||
|
|
||||||
file { "${priority}-${name}":
|
file { "${priority}-${name}":
|
||||||
ensure => absent,
|
ensure => absent,
|
||||||
path => "${httpd::params::vdir}/${priority}-${name}",
|
path => "${httpd::params::vdir}/${priority}-${name}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user