I have Apache 2.0, PHP 5.2.4, and this directive in the httpd.conf:
AddType application/x-httpd-php-source .php .php3 .php4 .php5 .php6
AddType directive is used to maps the given filename extensions onto the specified content type. This is the only meaning of this directive.
But why does this method switch off PHP handler, that assigned .php extensions, and I can view source code of scripts in my browser?
AddType application/x-httpd-php5 .php
Why does this method switch on PHP handler? This simply must send header
Content-Type: application/x-httpd- to my browser and this must be only meaning of directive
AddType from mod_mime.