Hi,
I'm trying to write a script that will output a directory index, as suggested in the other topic. The problem is that I have some aliases. Finding the filesystem paths for those is difficult. True paths are not passed to CGI, only virtual addresses. So I tried sending those paths from hiawatha.conf as environment variables. This didn't work. I don't know if this is a bug or intentional.
hiawatha.conf (relevant parts):
VirtualHost{
WebsiteRoot = /http/1-0
Alias = /guest:/http/1-1
TriggerOnCGIstatus = yes
ErrorHandler = 404:/DirIndex.php
[...]
}
Directory{
Path = /http/1-1
Setenv ShowIndex=yes
Setenv AliasDocRoot=/http/1-1
[...]
}
DirIndex.php
var_dump(get_defined_vars());
Opening http://myserver/guest/ or http://myserver/guest/some-subdir/
does not list AliasDocRoot and ShowIndex variables.