Revision ff511444
Von Jan Büren vor mehr als 4 Jahren hinzugefügt
.htaccess | ||
---|---|---|
1 |
### Choose a character set (just in case you like to change it here) |
|
2 |
### uncomment the line you wish to activate |
|
3 |
#AddDefaultCharset ISO-8859-15 |
|
1 |
# Should always be the default |
|
4 | 2 |
#AddDefaultCharset UTF-8 |
5 | 3 |
|
6 | 4 |
### simple access control by client ip |
7 | 5 |
### uncomment the lines starting with <IfModule ...> until last </IfModule> |
8 | 6 |
### 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 | 7 |
#<IfModule mod_authz_core.c> |
11 | 8 |
# # Apache 2.4 |
12 | 9 |
# Require ip 192.168 |
13 | 10 |
#</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> |
Auch abrufbar als: Unified diff
.htaccess Beispiele für apache 2.2 entfernt | UTF-8 als default