Revert "Updated config for CentOS 7 and Apache 2.4"

This reverts commit 0e9440c1ce.

Change-Id: Idb5ee5ea2d5aab0df499b42d08b845f04a2cc350
This commit is contained in:
James E. Blair 2015-07-08 17:08:01 -07:00
parent 98f407e6bb
commit b7b8428bc5
2 changed files with 4 additions and 48 deletions

View File

@ -143,30 +143,16 @@ Listen <%= scope.lookupvar("cgit::http_port") %>
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule cache_module modules/mod_cache.so
<IfVersion >= 2.4>
LoadModule authn_core_module modules/mod_authn_core.so
LoadModule authz_core_module modules/mod_authz_core.so
LoadModule authz_core_module modules/mod_authz_host.so
LoadModule cache_disk_module modules/mod_cache_disk.so
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule slotmem_shm_module modules/mod_slotmem_shm.so
LoadModule unixd_module modules/mod_unixd.so
</IfVersion>
<IfVersion < 2.4>
LoadModule authn_alias_module modules/mod_authn_alias.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule disk_cache_module modules/mod_disk_cache.so
</IfVersion>
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
LoadModule include_module modules/mod_include.so
@ -201,9 +187,11 @@ LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule version_module modules/mod_version.so
#
# The following modules are not loaded by default:
@ -225,10 +213,6 @@ LoadModule cgi_module modules/mod_cgi.so
#
Include conf.d/*.conf
<% if @operatingsystem == 'CentOS' && @operatingsystemmajrelease.to_i >= 7 -%>
Include conf.modules.d/*.conf
<% end -%>
#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
@ -349,13 +333,8 @@ DocumentRoot "/var/www/html"
#
# Controls who can get stuff from this server.
#
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
@ -427,14 +406,9 @@ AccessFileName .htaccess
# viewed by Web clients.
#
<Files ~ "^\.ht">
<IfVersion >= 2.4>
Require all denied
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Deny from all
Satisfy All
</IfVersion>
</Files>
#
@ -572,13 +546,8 @@ Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
#
@ -606,13 +575,8 @@ ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
</Directory>
#
@ -890,14 +854,8 @@ Alias /error/ "/var/www/error/"
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
<IfVersion >= 2.4>
Require all granted
</IfVersion>
<IfVersion < 2.4>
Order allow,deny
Allow from all
</IfVersion>
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>

View File

@ -39,9 +39,7 @@ SSLSessionCacheTimeout 300
# Semaphore:
# Configure the path to the mutual exclusion semaphore the
# SSL engine uses internally for inter-process synchronization.
<IfVersion < 2.4>
SSLMutex default
</IfVersion>
# Pseudo Random Number Generator (PRNG):
# Configure one or more sources to seed the PRNG of the