[oclug] Apache using php for .html
mike at bigrideau.com
Thu Jun 10 08:44:59 EDT 2004
Dave O'Neill wrote:
>On Wed, Jun 09, 2004 at 03:45:41PM -0400, Mike Thomas wrote:
>>I added the appropriate handler AddType application/x-httpd-php .php
>>When I try an view a page with a .html extension I get asked to save or
>>open the page in both Moz and IE.
>The page is not being processed by the PHP module. Instead, it's being
>sent out directly.
>Since you say you're getting asked to 'save or open' the page, I'm
>guessing it's also telling you something like "You have chosen to
>download a file of type: application/x-httpd-php"?
That is indeed the case.
>If that's the case, you either don't have PHP installed, or, if it's
>installed, it's not enabled correctly.
What's odd is that everything else works (and has for years)ie. A line
AddType application/x-httpd-php .php .php3 .html
serves .php and .php3 pages just fine, but chokes on the .html ones.
This is true for different locations in the same host as well as across
More information about the OCLUG