1 |
* On Tuesday 31 August 2004 19:19, Jochen Grünter wrote: |
2 |
|
3 |
>> [...] sind <Directory> Direktiven in der .htaccess meines Wissens |
4 |
>> nach prinzipiell garnicht erlaubt. |
5 |
|
6 |
> Ich vermute, dass Kai einen Auszug aus der httpd.conf präsentiert. |
7 |
> Und dann gilt: |
8 |
> |
9 |
> ,----- [ http://httpd.apache.org/docs-2.0/howto/htaccess.html ] |
10 |
> | Putting authentication directives in a <Directory> section, in |
11 |
> | your main server configuration file, is the preferred way to |
12 |
> | implement this, and .htaccess files should be used only if you |
13 |
> | don't have access to the main server configuration file |
14 |
> `----- |
15 |
|
16 |
Das widerspricht sich so nicht - .htaccess ist schliesslich eine |
17 |
Alternative zu den <Directory> Direktiven in der Serverkonfiguration, |
18 |
weswegen eine <Directory> Direktive in der .htaccess Datei selbst |
19 |
auch keinen Sinn ergbit. |
20 |
|
21 |
Der von Dir zitierte Absatz weist lediglich darauf hin, dass |
22 |
Authentifikationsdirektiven nach Möglichkeit direkt in den |
23 |
Konfigurationdateien des Servers umgesetzt werden sollten: |
24 |
|
25 |
,---- [ http://httpd.apache.org/docs-2.0/howto/htaccess.html ] |
26 |
| However, in general, use of .htaccess files should be avoided when |
27 |
| possible. Any configuration that you would consider putting in |
28 |
| a .htaccess file, can just as effectively be made in a <Directory> |
29 |
| section in your main server configuration file. |
30 |
`---- |
31 |
|
32 |
Die .htacces basierte Lösung wird nur als zweite Wahl in Betracht |
33 |
gezogen, etwa wenn dem Anwender der Zugriff auf die |
34 |
Konfiguratonsdateien nicht gestattet ist. |
35 |
|
36 |
Deutlich wird das auch in dem auf |
37 |
|
38 |
http://httpd.apache.org/docs-2.0/mod/core.html.en#directory |
39 |
|
40 |
genannten Kontext: Hier werden nur "server config" und "virtual host" |
41 |
genannt, htacces hingegen fehlt. |
42 |
|
43 |
<Directory ...> hat in der .htaccess also nichts veroren. |
44 |
|
45 |
Regards, |
46 |
Jens |
47 |
|
48 |
-- |
49 |
I think your opinions are reasonable, except for the one about my |
50 |
mental instability. |
51 |
-- Psychology Professor, Farifield University |
52 |
|
53 |
-- |
54 |
gentoo-user-de@g.o mailing list |