Browse Source

fix(redhat): use correct vhostdir and sitesdir for redhat family

Red hat family distributions do not implement sites-enabled nor vhosts.d
directories and all virtual hosts are under /etc/httpd/conf.d
pull/376/head
l00d3r 3 years ago
parent
commit
b2b44b60ce
3 changed files with 7 additions and 7 deletions
  1. +3
    -3
      apache/osfamilymap.yaml
  2. +2
    -2
      test/integration/default/controls/config_spec.rb
  3. +2
    -2
      test/integration/modules/controls/config_spec.rb

+ 3
- 3
apache/osfamilymap.yaml View File

@@ -74,19 +74,19 @@ RedHat:
mod_geoip: mod_geoip
mod_geoip_database: GeoIP

vhostdir: /etc/httpd/vhosts.d
vhostdir: /etc/httpd/conf.d
confdir: /etc/httpd/conf.d
modulesdir: /usr/lib64/httpd/modules
confext: .conf
default_site: default
default_site_ssl: default-ssl
default_site_ssl: ssl
logdir: /var/log/httpd
logrotatedir: /etc/logrotate.d/httpd
wwwdir: /var/www
default_charset: UTF-8
use_require: false
moddir: /etc/httpd/conf.modules.d
sitesdir: /etc/httpd/sites-enabled
sitesdir: /etc/httpd/conf.d

Suse:
pkg:

+ 2
- 2
test/integration/default/controls/config_spec.rb View File

@@ -16,10 +16,10 @@ control 'apache configuration' do
moddir = '/etc/apache2/mods-enabled'
sitesdir = '/etc/apache2/vhosts.d'
when 'redhat', 'fedora'
vhostdir = '/etc/httpd/vhosts.d'
vhostdir = '/etc/httpd/conf.d'
logrotatedir = '/etc/logrotate.d/httpd'
moddir = '/etc/httpd/conf.modules.d'
sitesdir = '/etc/httpd/sites-enabled'
sitesdir = '/etc/httpd/conf.d'
when 'gentoo'
vhostdir = '/etc/apache2/vhosts.d'
logrotatedir = '/etc/logrotate.d/apache2'

+ 2
- 2
test/integration/modules/controls/config_spec.rb View File

@@ -18,11 +18,11 @@ control 'apache configuration' do
moddir = '/etc/apache2/mods-enabled'
sitesdir = '/etc/apache2/vhosts.d'
when 'redhat', 'fedora'
vhostdir = '/etc/httpd/vhosts.d'
vhostdir = '/etc/httpd/conf.d'
logrotatedir = '/etc/logrotate.d/httpd'
logdir = '/var/log/httpd'
moddir = '/etc/httpd/conf.modules.d'
sitesdir = '/etc/httpd/sites-enabled'
sitesdir = '/etc/httpd/conf.d'
apachectl = 'httpd -t'
when 'gentoo'
vhostdir = '/etc/apache2/vhosts.d'

Loading…
Cancel
Save