- default config:

* unrestricted access to (only) /var/www
 * remove (commented) Mutex, MaxRanges, ScriptSock
This commit is contained in:
Joe Orton 2012-03-13 15:45:17 +00:00
parent c70a7c10c0
commit 9c13a78f8b
2 changed files with 14 additions and 25 deletions

View File

@ -30,16 +30,6 @@
# #
ServerRoot "/etc/httpd" ServerRoot "/etc/httpd"
#
# Mutex: Allows you to set the mutex mechanism and mutex file directory
# for individual mutexes, or change the global defaults
#
# Uncomment and change the directory if mutexes are file-based and the default
# mutex file directory is not on a local disk or is not appropriate for some
# other reason.
#
# Mutex default:logs
# #
# Listen: Allows you to bind Apache to specific IP addresses and/or # Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost> # ports, instead of the default. See also the <VirtualHost>
@ -127,6 +117,17 @@ ServerAdmin root@localhost
# symbolic links and aliases may be used to point to other locations. # symbolic links and aliases may be used to point to other locations.
# #
DocumentRoot "/var/www/html" DocumentRoot "/var/www/html"
#
# Relax access to content within /var/www.
#
<Directory "/var/www">
AllowOverride None
# Allow open access:
Require all granted
</Directory>
# Further relax access to the default document root:
<Directory "/var/www/html"> <Directory "/var/www/html">
# #
# Possible values for the Options directive are "None", "All", # Possible values for the Options directive are "None", "All",
@ -247,14 +248,6 @@ LogLevel warn
</IfModule> </IfModule>
<IfModule cgid_module>
#
# ScriptSock: On threaded servers, designate the path to the UNIX
# socket used to communicate with the CGI daemon of mod_cgid.
#
#Scriptsock logs/cgisock
</IfModule>
# #
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured. # CGI directory exists, if you have that configured.
@ -340,13 +333,6 @@ MIMEMagicFile conf/magic
#ErrorDocument 402 http://www.example.com/subscription_info.html #ErrorDocument 402 http://www.example.com/subscription_info.html
# #
#
# MaxRanges: Maximum number of Ranges in a request before
# returning the entire resource, or one of the special
# values 'default', 'none' or 'unlimited'.
# Default setting is to accept 200 Ranges.
#MaxRanges unlimited
# #
# EnableMMAP and EnableSendfile: On systems that support it, # EnableMMAP and EnableSendfile: On systems that support it,
# memory-mapping or the sendfile syscall may be used to deliver # memory-mapping or the sendfile syscall may be used to deliver

View File

@ -507,6 +507,9 @@ rm -rf $RPM_BUILD_ROOT
* Tue Mar 13 2012 Joe Orton <jorton@redhat.com> - 2.4.1-2 * Tue Mar 13 2012 Joe Orton <jorton@redhat.com> - 2.4.1-2
- clean docroot better - clean docroot better
- ship proxy, ssl directories within /var/cache/httpd - ship proxy, ssl directories within /var/cache/httpd
- default config:
* unrestricted access to (only) /var/www
* remove (commented) Mutex, MaxRanges, ScriptSock
* Tue Mar 6 2012 Joe Orton <jorton@redhat.com> - 2.4.1-1 * Tue Mar 6 2012 Joe Orton <jorton@redhat.com> - 2.4.1-1
- update to 2.4.1 - update to 2.4.1