Hallo,
ich habe gerade mal eine Mime-Tabelle reingebastelt
(funktioniert wie üblich über Links auf das
eigentliche Programm und Abfrage auf argv[0]).
hatten wir nicht geklärt, daß "SetEnv" doch nicht "böse" wäre?
Dann habe ich irgendwas nicht mitbekommen ;-)
(Die Mime-Tabelle wäre aber eh per default ausgeschaltet gewesen)
Aber meine Dokumentation vom Apachen 1.3.23 sagt folgendes
SetEnv directive
Syntax: SetEnv env-variable value
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_env
Compatibility: SetEnv is only available in Apache 1.1 and later. Directory and .htaccess context is available
in Apache 1.3.7 and later.
.htaccess wird also erst seit 1.3.7 unterstützt. Ist die veraltet genug, oder noch in signifikanter Anzahl online?
Allerdings bräuchtest Du eigentlich sogar SetEnvIf:
SetEnvIf directive
Syntax: SetEnvIf attribute regex env-variable[=value] [env-variable[=value]] ...
Default: none
Context: server config, virtual host, directory, .htaccess
Override: FileInfo
Status: Base
Module: mod_setenvif
Compatibility: Apache 1.3 and above; the Request_Protocol keyword and environment-variable matching are only
available with 1.3.7 and later; use in .htaccess files only supported with 1.3.13 and later
Und das ist, wie man sieht, erst ab 1.3.13 in der .htaccess möglich.
(Ich kann das in ./configure abfragen, so ist das nicht, aber der Aufwand ... ;-).
Also meine Frage: sind die Dinger so alt, daß man sie getrost ignorieren kann?
so short
christoph Zurnieden