case node[:platform_family]
when 'debian'
mirror_list_path = '/etc/apt/mirror.list'
- httpd_conf_path = "/etc/#{httpd_service}/conf.d/apt-mirror"
+ case node[:platform_version]
+ when 'jessie'
+ httpd_conf_path = "/etc/#{httpd_service}/conf-available/apt-mirror"
+ else
+ httpd_conf_path = "/etc/#{httpd_service}/conf.d/apt-mirror"
+ end
when 'rhel'
mirror_list_path = '/etc/apt-mirror.list'
httpd_conf_path = "/etc/#{httpd_service}/conf.d/apt-mirror.conf"
Options Indexes SymLinksIfOwnerMatch FollowSymLinks
IndexOptions NameWidth=* +SuppressDescription
AllowOverride FileInfo Indexes
- Order Deny,Allow
- Allow from all
+ <IfVersion < 2.3>
+ Order Deny,Allow
+ Allow from all
+ </IfVersion>
+ <IfVersion >= 2.3>
+ Require all granted
+ </IfVersion>
ErrorDocument 404 default
</Directory>