[Xitami] [Alias] and [Filter] do conflict?
Maurilio Longo
xitami@lists.xitami.org
Thu, 12 May 2005 18:12:45 +0200
Pieter,
sorry, it still does not work, right now a request for
http://localhost/schede/pmwiki.php
becomes a path_translated like "/schede/pmwiki.php"
but the .php file is inside w:\wiki\ as per [Alias] section of defaults.cfg (so it
should become /wiki/pmwiki.php, I think, to become reachable by php.exe - or even
more a w:/wiki/pmwiki.php to take into account the possibility of an alias that
points to a different volume)
I'm still looking at cgi_main.c code of php to understand what it really uses to
find the .php file.
Thanks!
Maurilio.
Pieter Hintjens ha scritto:
> On 12/05/2005 04:52 pm, Maurilio Longo wrote:
>
> > 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.
>
> Yes, this makes sense. I vaguely remember this being reported as a problem in
> the past.
>
> I've taken a look. I don't have time to set-up a test environment so this is
> speculative, but the problem appears to be in smthttpl.c where it formats the
> path_translated variable, wrongly sticking the rootdir before the path name.
> Try this patch (smthttpl.c, line 2656):
>
> if (filter)
> path_translated = xstrcpy (NULL, p_http-> url, NULL);
> else
> path_translated = xstrcpy (NULL, full_rootdir, p_http-> path_info,
> NULL);
>
> No guarantee this works but if it does I'll patch the source code.
>
> Regards,
> Pieter Hintjens
>
> --
> Xitami Users Mailing List -- For Xitami support
> To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami
--
__________
| | | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.