httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: Apache delivers PHP source code for vim backup files
Date Tue, 14 Jul 2009 16:20:48 GMT
On Tue, Jul 14, 2009 at 11:54 AM, Jens Winter<> wrote:
> Hi,
> I wonder which rules are used to decide if a file is processed by PHP. For
> example x.php, x.php.bak and x.php.x~ are all processed, but x.php~ is not
> (at least by default). This could be an issue if you use vim or similar
> editors to edit the config files of e.g. WordPress or MediaWiki (containing
> DB passwords) directly in the server directory (which you shouldn't do, but
> we all know that some people will do anyway...).
> So if so many filename schemes result in processing the PHP code, why are
> these critical files delivered as source code (again talking about default
> behavior)?

Directives that accept "filename extensions" treat "" as
having two distinct extensions.

Eric Covener

View raw message