Accepting request 205788 from home:fdekruijf:branches:Apache

Removed obsolete directive DefaultType bnc#848146
Changed access control to use new Require type directives

OBS-URL: https://build.opensuse.org/request/show/205788
OBS-URL: https://build.opensuse.org/package/show/Apache/apache2?expand=0&rev=397
This commit is contained in:
Tomáš Chvátal 2013-11-11 14:10:25 +00:00 committed by Git OBS Bridge
parent 4c27b7a385
commit 738fecb393
11 changed files with 32 additions and 41 deletions

View File

@ -25,8 +25,7 @@ DocumentRoot "/srv/www/htdocs"
# Options FileInfo AuthConfig Limit # Options FileInfo AuthConfig Limit
AllowOverride None AllowOverride None
# Controls who can get stuff from this server. # Controls who can get stuff from this server.
Order allow,deny Require all granted
Allow from all
</Directory> </Directory>
# Aliases: aliases can be added as needed (with no limit). The format is # Aliases: aliases can be added as needed (with no limit). The format is
@ -46,8 +45,7 @@ Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons"> <Directory "/usr/share/apache2/icons">
Options Indexes MultiViews Options Indexes MultiViews
AllowOverride None AllowOverride None
Order allow,deny Require all granted
Allow from all
</Directory> </Directory>
# ScriptAlias: This controls which directories contain server scripts. # ScriptAlias: This controls which directories contain server scripts.
@ -65,8 +63,7 @@ ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
<Directory "/srv/www/cgi-bin"> <Directory "/srv/www/cgi-bin">
AllowOverride None AllowOverride None
Options +ExecCGI -Includes Options +ExecCGI -Includes
Order allow,deny Require all granted
Allow from all
</Directory> </Directory>
# UserDir: The name of the directory that is appended onto a user's home # UserDir: The name of the directory that is appended onto a user's home

View File

@ -190,15 +190,18 @@
#AuthUserFile /srv/www/passwd/default #AuthUserFile /srv/www/passwd/default
# #
# Controls who can get stuff from this server. # Controls who can get stuff from this server. The example gives access to:
# either a valid user, a user on the same system as the server, a system
# which name ends with .example.com and of which the reverse lookup of the
# IP address matches with the IP address that has been received by looking
# up that name in the DNS irrespective of any setting of HostnameLookups.
# #
#<limit GET POST> #<limit GET POST>
# Require valid-user # <RequireAny>
# Order Deny,Allow # Require valid-user
# Deny from All # Require local
# Allow from 127.0.0.1 # Require host .example.com
# Allow from .example.com # </RequireAny>
# Satisfy any
#</limit> #</limit>
</Directory> </Directory>

View File

@ -52,8 +52,7 @@
<Directory "/srv/www/cgi-bin"> <Directory "/srv/www/cgi-bin">
AllowOverride None AllowOverride None
Options +ExecCGI -Includes Options +ExecCGI -Includes
Order allow,deny Require all granted
Allow from all
</Directory> </Directory>
@ -109,8 +108,7 @@
# #
# Controls who can get stuff from this server. # Controls who can get stuff from this server.
# #
Order allow,deny Require all granted
Allow from all
</Directory> </Directory>

View File

@ -40,8 +40,7 @@ Alias /error/ "/usr/share/apache2/error/"
Options IncludesNoExec Options IncludesNoExec
AddOutputFilter Includes html AddOutputFilter Includes html
AddHandler type-map var AddHandler type-map var
Order allow,deny Require all granted
Allow from all
LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr LanguagePriority en cs de es fr it ja ko nl pl pt-br ro sv tr
ForceLanguagePriority Prefer Fallback ForceLanguagePriority Prefer Fallback
</Directory> </Directory>

View File

@ -137,7 +137,6 @@ Include /etc/apache2/mod_autoindex-defaults.conf
# associate MIME types with filename extensions # associate MIME types with filename extensions
TypesConfig /etc/apache2/mime.types TypesConfig /etc/apache2/mime.types
DefaultType text/plain
Include /etc/apache2/mod_mime-defaults.conf Include /etc/apache2/mod_mime-defaults.conf
# set up (customizable) error responses # set up (customizable) error responses
@ -151,16 +150,14 @@ Include /etc/apache2/ssl-global.conf
<Directory /> <Directory />
Options None Options None
AllowOverride None AllowOverride None
Order deny,allow Require all denied
Deny from all
</Directory> </Directory>
# use .htaccess files for overriding, # use .htaccess files for overriding,
AccessFileName .htaccess AccessFileName .htaccess
# and never show them # and never show them
<Files ~ "^\.ht"> <Files ~ "^\.ht">
Order allow,deny Require all denied
Deny from all
</Files> </Files>
# List of resources to look for when the client requests a directory # List of resources to look for when the client requests a directory

View File

@ -2,15 +2,14 @@
# This configuration file belongs to the apache2-doc package. # This configuration file belongs to the apache2-doc package.
# #
# The alias provides the manual, even if you choose to move your DocumentRoot. # The alias provides the manual, even if you choose to move your DocumentRoot.
# this out if you do not care for the documentation. # Comment this out if you do not care for the documentation.
# #
AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/share/apache2/manual$1" AliasMatch ^/manual(?:/(?:de|en|es|fr|ja|ko|ru))?(/.*)?$ "/usr/share/apache2/manual$1"
<Directory "/usr/share/apache2/manual"> <Directory "/usr/share/apache2/manual">
Options Indexes Options Indexes
AllowOverride None AllowOverride None
Order allow,deny Require all granted
Allow from all
<Files *.html> <Files *.html>
SetHandler type-map SetHandler type-map

View File

@ -7,9 +7,7 @@
<IfModule mod_info.c> <IfModule mod_info.c>
<Location /server-info> <Location /server-info>
SetHandler server-info SetHandler server-info
Order deny,allow Require local
Deny from all
Allow from localhost
</Location> </Location>
</IfModule> </IfModule>

View File

@ -7,9 +7,7 @@
<IfModule mod_status.c> <IfModule mod_status.c>
<Location /server-status> <Location /server-status>
SetHandler server-status SetHandler server-status
Order deny,allow Require local
Deny from all
Allow from localhost 127.0.0.1
</Location> </Location>
</IfModule> </IfModule>

View File

@ -31,13 +31,11 @@
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND> <Limit GET POST OPTIONS PROPFIND>
Order allow,deny Require all granted
Allow from all
</Limit> </Limit>
<LimitExcept GET POST OPTIONS PROPFIND> <LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow Require all denied
Deny from all
</LimitExcept> </LimitExcept>
</Directory> </Directory>

View File

@ -60,8 +60,7 @@
<Directory "/srv/www/vhosts/dummy-host.example.com/cgi-bin"> <Directory "/srv/www/vhosts/dummy-host.example.com/cgi-bin">
AllowOverride None AllowOverride None
Options +ExecCGI -Includes Options +ExecCGI -Includes
Order allow,deny Require all granted
Allow from all
</Directory> </Directory>
@ -116,8 +115,7 @@
# #
# Controls who can get stuff from this server. # Controls who can get stuff from this server.
# #
Order allow,deny Require all granted
Allow from all
</Directory> </Directory>

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Nov 4 20:55:52 UTC 2013 - freek@opensuse.org
- Removed obsolete directive DefaultType
- Changed all access control to new Require directive
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Oct 25 00:05:02 UTC 2013 - crrodriguez@opensuse.org Fri Oct 25 00:05:02 UTC 2013 - crrodriguez@opensuse.org