| vrana@php.net 2005-09-26, 7:55 am |
| ID: 33678
Updated by: vrana@php.net
Reported By: jurgen at telebusiness dot net
Status: Bogus
Bug Type: Documentation problem
Operating System: ALL
PHP Version: Irrelevant
New Comment:
http://httpd.apache.org/docs/2.0/mo...e.html#addtype: "It is
recommended that new MIME types be added using the AddType directive
rather than changing the TypesConfig file."
Previous Comments:
------------------------------------------------------------------------
[2005-09-21 19:51:31] jurgen at telebusiness dot net
It works the way I told.
So if it is not the right way, tell us the reason. Mime;types is the
place to put Your custom related extensions to apache,
and .php is one of them.
------------------------------------------------------------------------
[2005-09-19 14:11:32] sniper@php.net
Definately not correct way to add the types.
------------------------------------------------------------------------
[2005-07-13 14:12:49] jurgen at telebusiness dot net
Description:
------------
Currently I disagree with this section in INSTALL.TXT:
(Recurring in seceral sections !!!)
# Add this line inside the <IfModule mod_mime.c> conditional brace
AddType application/x-httpd-php .php
# For syntax highlighted .phps files, also add
AddType application/x-httpd-php-source .phps
Because: AddType OVERWRITES mimes.types definitions.
So don't use Addtype in httpd.conf but change mimes.types
with: (append after line application/pgp-signature)
application/x-httpd-php php
application/x-httpd-php-source phps
This works both for windows and unix.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33678&edit=1
|