Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

on my Apache/PHP server, file test.php.html is parsed by PHP, while test.html is not. PHPDOC create a lot of *.php.html files, with a XML header wich is a pain for PHP parser, but how to tell Apache not to pass *.php.html file to PHP and just send back the file to browser?

My php.conf file

<IfModule prefork.c>
  LoadModule php5_module modules/
<IfModule worker.c>
  LoadModule php5_module modules/
AddHandler php5-script .php
AddType text/html .php

What can I do?

Bests regards

share|improve this question
There appears to be a similar question on stackoverflow that might help you:… – Michael Apr 3 '10 at 18:45
Thanks you, the accepted answer work for me! – Cédric Girard Apr 6 '10 at 12:08

Add the following to your Apache configuration or in a ".htaccess" file:

<FilesMatch "\.php\.html$">
    SetHandler None
share|improve this answer
Does not work for me, sorry. – Cédric Girard Apr 6 '10 at 12:07
up vote 0 down vote accepted

From the accepted answer of

I replaced

AddHandler php5-script .php


<FilesMatch \.cgi$>
SetHandler cgi-script
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.