[Xitami] Trouble with Filters and Aliases

Alex Frase xitami@lists.xitami.org
Wed, 23 Oct 2002 00:20:17 -0500


I'm using Xitami 2.5b5 for Windows (2000 Professional, sp2) with PHP 4.2.2, 
and I've come across a problem combining the PHP filter with aliases:

- PHP files accessible via the standard document root (in my case, 
'd:/inet/web/server') work perfectly through the the filter ('.php = 
d:/apps/inet/php/php.exe'); for example:
'/index.php' -> 'd:/inet/web/server/index.php' works
'/dir/index.php' -> 'd:/inet/web/server/dir/index.php' works

- HTML files accessible via an alias ('private = d:/inet/web/secure') also 
work perfectly; for example:
'/private/index.html' -> 'd:/inet/web/secure/index.html' works,
'/private/dir/index.html' -> 'd:/inet/web/secure/dir/index.html' works

- PHP files accessible via an alias come back empty; for example:
'/private/test.php' -> 'd:/inet/web/secure/test.php' doesn't work, I just 
get an empty template document.

The problem appears to be related specifically to the situation in which a 
filtered file extension is accessed after an alias translation.  I 
downloaded the Xitami source kit and attempted to locate the bug myself, but 
quickly discovered that it's more elusive than I expected (although there is 
a comment which indicates that the developers are aware that filters and 
aliases don't work together); I set some breakpoints and determined that the 
temporary file ('pipeXXXX.flt') was, in fact, being generated in my system 
temp folder with the correctly parsed PHP output, but somehow this file is 
not being returned by the server; instead I only get:<pre>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; 
charset=windows-1252"></HEAD>
<BODY></BODY></HTML>

</pre>
I searched Googol for information and found some other people who had the 
same trouble, but I can think of no workaround until the developers address 
the issue specifically.

Any suggestions, or should I go ahead and email the bug to iMatix?

-Alex Frase


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963