[Xitami] [Alias] and [Filter] do conflict?
Maurilio Longo
xitami@lists.xitami.org
Thu, 12 May 2005 16:52:15 +0200
Pieter,
after further testings I've found out that xitami calls the php interpreter
passing to it the correct script file name (that is, the correct full path from
volume name to script name - w:\wiki\pmwiki.php in my case).
But, php.exe does not use it's arguments to find the script but some environment
variable (like PATH_TRANSLATED and/or - I'm still investigating - SCRIPT_FILENAME)
and, for sure, PATH_TRANSLATED does not point to the right path (relative to
yesterday defaults.cfg) but to a subdir of webpages configuration.
I mean, path_translated becomes w:\web\schede\wiki\pmwiki.php and not
w:\wiki\pmwiki.php.
So, the problem seems not to be in the code that spawns the .php interpreter but
in the code that creates the cgi environment before spawning the cgi executable.
Does this help you in any way?
Maurilio.
Pieter Hintjens ha scritto:
> On 11/05/2005 07:21 pm, Maurilio Longo wrote:
>
> > could you please point me in the right direction, I mean, which source file
> > handles this? (then I'll try to understand what happens exactly).
>
> OK. It's smthttp.c, and smthttpl.c. smthttp.c is built using Libero and has
> an animation ability (you need Libero installed):
>
> - lr -animate smthttp.l
> - rebuild
>
> This shows what the HTTP agent in the server does when the request comes in.
> You can test with a local (working) filtered file and an aliased (failing)
> filtered file. If there's a difference in the animation trace, that makes
> the problem easy to find.
>
> Next, smthttpl.c does most of the hard work of handling a HTTP request. There
> are two or three main functions that check the type of file, resolve aliases,
> etc. You'd have to start with the code in smthttp.c and follow it as it
> calls these functions (you can see which ones, they are printing the debug
> statements you reported in your email).
>
> -Pieter
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
--
__________
| | | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.