PHP 4.0 Bug #7868: mod_autoindex breaks when php handles .html files
| From: | andrew at mopedog dot com | Date: | Fri, 17 Nov 2000 22:18:29 +0000 |
| Subject: | PHP 4.0 Bug #7868: mod_autoindex breaks when php handles .html files | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38453@lists.php.net to get a copy of this message | ||
From: andrew@mopedog.com
Operating system: RedHat Linux 7.0
PHP version: 4.0.3pl1
PHP Bug Type: Apache related
Bug description: mod_autoindex breaks when php handles .html files
When PHP is set to process all .html files, certain functions of mod_autoindex fail. Specifically,
my directory indexes no longer display README.html or HEADER.html files. These are specified by the
following directives in my httpd.conf file:
HeaderName HEADER.html
ReadmeName README.html
If I comment out the following line:
AddType application/x-httpd-php .html
then the normal functionality resumes, with header and readme files prepending and appending
properly. This leaves me with the unfortunate choice of having to deny users the ability to parse
PHP within HTML files or removing the very useful ability to generate raw directory indexes with
headers and footers.
I'm using Apache 1.3.14 and PHP 4.0.3pl1 with RedHat Linux 7.0 on an i686 box.
--
Edit Bug report at: http://bugs.php.net/?id=7868&edit=1