Revision 0eb1e3a9
Von Robert Scheck vor mehr als 6 Jahren hinzugefügt
.htaccess | ||
---|---|---|
1 | 1 |
### Choose a character set (just in case you like to change it here) |
2 |
### uncommit the line you wish to activate
|
|
2 |
### uncomment the line you wish to activate
|
|
3 | 3 |
#AddDefaultCharset ISO-8859-15 |
4 | 4 |
#AddDefaultCharset UTF-8 |
5 | 5 |
|
6 | 6 |
### simple access control by client ip |
7 |
### uncomment the lines starting with Order ..., Deny ... and Allow ... |
|
8 |
### examples: "Allow from 192.168" or "Allow from 192.168.1" or "Allow from 192.168.178" or "Allow from 217.84.201.2" |
|
9 |
#Order deny,allow |
|
10 |
#Deny from all |
|
11 |
#Allow from 192.168 |
|
7 |
### uncomment the lines starting with <IfModule ...> until last </IfModule> |
|
8 |
### examples for Apache >= 2.4: "Require ip 192.168" or "Require ip 192.168.1" or "Require ip 192.168.178" or "Require ip 217.84.201.2" |
|
9 |
### examples for Apache <= 2.2: "Allow from 192.168" or "Allow from 192.168.1" or "Allow from 192.168.178" or "Allow from 217.84.201.2" |
|
10 |
#<IfModule mod_authz_core.c> |
|
11 |
# # Apache 2.4 |
|
12 |
# Require ip 192.168 |
|
13 |
#</IfModule> |
|
14 |
#<IfModule !mod_authz_core.c> |
|
15 |
# # Apache 2.2 |
|
16 |
# Order deny,allow |
|
17 |
# Deny from all |
|
18 |
# Allow from 192.168 |
|
19 |
#</IfModule> |
SL/.htaccess | ||
---|---|---|
1 |
Order Allow,Deny |
|
2 |
Deny from all |
|
1 |
<IfModule mod_authz_core.c> |
|
2 |
# Apache 2.4 |
|
3 |
Require all denied |
|
4 |
</IfModule> |
|
5 |
<IfModule !mod_authz_core.c> |
|
6 |
# Apache 2.2 |
|
7 |
Order deny,allow |
|
8 |
Deny from all |
|
9 |
</IfModule> |
bin/mozilla/.htaccess | ||
---|---|---|
1 |
Order Allow,Deny |
|
2 |
Deny from all |
|
1 |
<IfModule mod_authz_core.c> |
|
2 |
# Apache 2.4 |
|
3 |
Require all denied |
|
4 |
</IfModule> |
|
5 |
<IfModule !mod_authz_core.c> |
|
6 |
# Apache 2.2 |
|
7 |
Order deny,allow |
|
8 |
Deny from all |
|
9 |
</IfModule> |
config/.htaccess | ||
---|---|---|
1 |
Order Allow,Deny |
|
2 |
Deny from all |
|
1 |
<IfModule mod_authz_core.c> |
|
2 |
# Apache 2.4 |
|
3 |
Require all denied |
|
4 |
</IfModule> |
|
5 |
<IfModule !mod_authz_core.c> |
|
6 |
# Apache 2.2 |
|
7 |
Order deny,allow |
|
8 |
Deny from all |
|
9 |
</IfModule> |
locale/.htaccess | ||
---|---|---|
1 |
Order Allow,Deny |
|
2 |
Deny from all |
|
1 |
<IfModule mod_authz_core.c> |
|
2 |
# Apache 2.4 |
|
3 |
Require all denied |
|
4 |
</IfModule> |
|
5 |
<IfModule !mod_authz_core.c> |
|
6 |
# Apache 2.2 |
|
7 |
Order deny,allow |
|
8 |
Deny from all |
|
9 |
</IfModule> |
scripts/.htaccess | ||
---|---|---|
1 |
Order Allow,Deny |
|
2 |
Deny from all |
|
1 |
<IfModule mod_authz_core.c> |
|
2 |
# Apache 2.4 |
|
3 |
Require all denied |
|
4 |
</IfModule> |
|
5 |
<IfModule !mod_authz_core.c> |
|
6 |
# Apache 2.2 |
|
7 |
Order deny,allow |
|
8 |
Deny from all |
|
9 |
</IfModule> |
t/.htaccess | ||
---|---|---|
1 |
Order Allow,Deny |
|
2 |
Deny from all |
|
1 |
<IfModule mod_authz_core.c> |
|
2 |
# Apache 2.4 |
|
3 |
Require all denied |
|
4 |
</IfModule> |
|
5 |
<IfModule !mod_authz_core.c> |
|
6 |
# Apache 2.2 |
|
7 |
Order deny,allow |
|
8 |
Deny from all |
|
9 |
</IfModule> |
templates/.htaccess | ||
---|---|---|
1 |
Order Allow,Deny |
|
2 |
Deny from all |
|
1 |
<IfModule mod_authz_core.c> |
|
2 |
# Apache 2.4 |
|
3 |
Require all denied |
|
4 |
</IfModule> |
|
5 |
<IfModule !mod_authz_core.c> |
|
6 |
# Apache 2.2 |
|
7 |
Order deny,allow |
|
8 |
Deny from all |
|
9 |
</IfModule> |
Auch abrufbar als: Unified diff
Update .htaccess for Apache 2.4 to avoid mod_access_compat dependency
See also: https://httpd.apache.org/docs/2.4/upgrading.html