Apache configurations for php "AddType text/html php" or "AddType application/x-httpd-php php .php"

Posted by forestclown on Server Fault See other posts from Server Fault or by forestclown
Published on 2012-05-31T08:16:14Z Indexed on 2012/05/31 10:43 UTC
Read the original article Hit count: 5508

Filed under:
|

I am taking over an application server and discover that it contain the following settings:

AddType text/html       php

Although it works, but my understanding is that it should set as following:

AddType application/x-httpd-php php .php

What are the key differences between the two settings? Although at this point my application (Built using CakePHP) is running fine with either configuration, but I am not sure if it will cause any strange behaviour.

Thanks!

© Server Fault or respective owner

Related posts about apache2

Related posts about config