How to directly send *.php.html files to browser without passing throught PHP? (Apache)
Posted
by Cédric Girard
on Server Fault
See other posts from Server Fault
or by Cédric Girard
Published on 2010-04-01T15:35:33Z
Indexed on
2010/04/01
15:43 UTC
Read the original article
Hit count: 434
Hi,
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/libphp5.so
</IfModule>
<IfModule worker.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>
AddHandler php5-script .php
AddType text/html .php
What can I do?
Thanks,
Bests regards
Cédric
© Server Fault or respective owner