nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Re: Neue PHP Endung + anderer Content Type

Von: Joerg Behrens (behrens@takenet.de) [Profil]
Datum: 28.09.2007 19:14
Message-ID: <5m4r3bFbse18U3@mid.individual.net>
Newsgroup: de.comp.lang.php.installation
Jonas Werres schrieb:
>> Apache-Config. Somit lässt sich der Standard-Mimetype zum Beispiel s
o in
>> einer .htaccess ändern:
>>
>> <Ifmodule mod_php5.c>
>>     AddType application/x-httpd-php .huba
>> </IfModule>
>> <Files "*.huba">
>>     php_value default_mimetype "text/plain"
>> </Files>
> 
> .htaccess: php_value not allowed here

AllowOveride Config in der httpd.conf fuer das Directory setzen. Bin mir

mit "config" nicht ganz sicher... must du mal in der Doku nachlesen.
Allerdings wenn du Zugriff auf die httpd.conf hast dann geht auch

<Directory /path/to/example.com/htdocs/kurse >
....
....
php_value default_mimetype "text/plain"
</Directory>


Alle PHP Sachen aus "kurse" werden dann als text/plain ausgeliefert.


Gruss
Joerg

--
TakeNet GmbH,                    Geschaeftsfuehrer Wolfgang Meier
97080 Wuerzburg                  Tel: +49 931 903-2243
Alfred-Nobel-Straße 20           Fax: +49 931 903-3025
HRB Wuerzburg 6940               http://www.takenet.de

[ Auf dieses Posting antworten ]