[Xitami] [Alias] and [Filter] do conflict?
Maurilio Longo
xitami@lists.xitami.org
Wed, 11 May 2005 17:42:01 +0200
Hi,
my build of xitami 2.5c2 on OS/2 works well but I've found something which I
think is a problem with xitami itself and not with the build.
I have this defaults.cfg
--------8<---------------------
#*END
[Alias]
/schede = "w:\\wiki"
[Cgi]
workdir=-
Form-query = "1"
debug=1
[Filter]
.php = "e:/internet/php/cgi/php.exe"
.prg = "./cgi-bin/hscript.exe"
[Server]
Cache-defaults = "0"
Webpages = "w:/web"
temp-dir = "./temp/"
debug=1
-------------------------------
Look that I have an [Alias] and a [Filter] section for .php files.
Now, when a request arrives for a .php file which resides in an aliased dir it
does not get "translated" as if it where a simple .html file.
Look at this debug log:
-------8<------------------------
2005/05/11 17:29:45: Loading VH data for base host
2005/05/11 17:29:45: - loading config data from basehost.cfg
2005/05/11 17:29:45: - rootdir=w:/web, cgi-bin=cgi-bin
2005/05/11 17:29:45: - loading password data from: xitami.aut
2005/05/11 17:29:50: Looking for VH using Host value: localhost
2005/05/11 17:29:50: - looking for VH using IP address: 127.0.0.1
2005/05/11 17:29:50: - using default virtual host values
2005/05/11 17:29:50: Resolving URL request: /schede/pmwiki.php
2005/05/11 17:29:50: - URL handled by filter 'e:/internet/php/cgi/php.exe'
2005/05/11 17:29:50: - request refers to a normal readable file
2005/05/11 17:29:51: Transfer file=.\TEMP\pipe0001.flt size=25 from=66
...
---------------------------------
while a request for a .html file is correctly translated: see this log:
----8<------------------------
2005/05/11 17:40:41: Loading VH data for base host
2005/05/11 17:40:41: - loading config data from basehost.cfg
2005/05/11 17:40:41: - rootdir=w:/web, cgi-bin=cgi-bin
2005/05/11 17:40:41: - loading password data from: xitami.aut
2005/05/11 17:40:48: Looking for VH using Host value: localhost
2005/05/11 17:40:48: - looking for VH using IP address: 127.0.0.1
2005/05/11 17:40:48: - using default virtual host values
2005/05/11 17:40:48: Resolving URL request: /schede/test.html
2005/05/11 17:40:48: - URL refers to a normal HTML file
2005/05/11 17:40:48: - request refers to a normal readable file
2005/05/11 17:40:48: Transfer file=w:/wiki/test.html size=18009 from=0
-------------------------------
Now, the question is: how can I execute a filtered file from an aliased path?
TIA.
Maurilio.
--
__________
| | | |__| Maurilio Longo
|_|_|_|____| farmaconsult s.r.l.