Hiawatha version: 7.3
Operating System: sidux-2010-01 (it's debianlike)
Hello *,
thank you Hugo for kindly answering to my mail. Here are my questions:
Up to now it's not very clear to me, how UrlToolkit works, although I'm not unfamiliar with regexp, though I'm not a real expert to it.
My question is:
Does UrlToolkit work like a subprogramm, i.e. you have an entry point, say the top of it, and then every line of code follows the other
until there is a Return or Exit statement or the last statement at end?
I have the difficulty, that my UrlToolkit-Statements don't work, if I make a call in a browser to:
http://der-spurlose-pfad.doesntexist.org/
the StartFile being in a subdirectory /cgi-bin.
If I call http://der-spurlose-pfad.doesntexist.org/x instead, x being any character(s), all will work perfectly. A hostname:
der-spurlose-pfad.doesntexist.org/cgi-bin would find the StartFile, but woun't work in finding grafics in subdirectories at the same level as /cgi-bin. Similarly I had no success in reordering the statements in UrlToolkit, arranging RequestUri at the end of UrlToolkit.
My UrlToolkit is:
UrlToolkit {
ToolkitID = spurlos
RequestURI exists Return
Match ^/cgi-bin$ Return
Match ^/cgi-bin/index.py?p=$1 Return
...
Match ^/Meister_Crohn/mc.pdf Return
Match ^/(.*)$ Rewrite /cgi-bin/
}
and my VirtualHost is
VirtualHost {
Hostname = der-spurlose-pfad.doesntexist.org
WebsiteRoot = /srv/HP/HP-Der-Spurlose-Pfad
UseToolkit = spurlos
StartFile = index.py
ExecuteCGI = yes
ShowIndex = no
AccessLogfile = /var/log/hiawatha/spurlos-access.log
ErrorLogfile = /var/log/hiawatha/spurlos-error.log
}
As I understand, ^/(.*)$ works even, when there is nothing (no characters) behind the first slash after the URL.
Certainly I made an error, but what error?
Greetings to all,
Ahmad