On Mon, Oct 13, 2008 at 7:58 AM, Kae Verens <kae@xxxxxxxxxxx> wrote: > Kae Verens wrote: >>>> >>>> For example, 'test.php.' will be run as if it is a PHP file. >> >> I don't have MultiViews enabled. In fact, to be sure, I specifically >> disabled it. that thought did occur to me, though. >> >> I haven't coded in C/C++ in over 10 years, but I'll try did through the >> httpd source to see if I can spot the cause. > > the problem appears to be that the dot at the end is ignored. > > in http/mod_mime.c, the extension is grabbed by breaking the filename apart > by its '.' symbols and inspecting each part until a known extension is > found. (the find_ct() function). > > unfortunately, it ignores empty extensions and extensions it doesn't > understand. This is a more serious problem than I thought. > > what it means, is that a file named "test.php.fdnsafhd" is treated as PHP > because Apache (with PHP installed) understands the '.php' extension, but > not the '.fdnsafhd' one, so it ignores the '.fdnsafhd' one. manual for mod_mime describes this interaction between multiple extensions (all of which are considered) and AddHandler http://httpd.apache.org/docs/2.2/mod/mod_mime.html#multipleext -- Eric Covener covener@xxxxxxxxx --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx