[Xitami] Multiple cgi directories--confusion
Chris Stromberger
xitami@lists.xitami.org
Thu, 14 Feb 2002 08:02:35 -0600
I'm confused by the two config items
[Server]
cgi-bin=path (docs say "Specifies the directory where CGI programs are located")
and
[CGI-Alias]
demos=G:\site\demos (docs say "This section lets you define multiple CGI program roots")
How do these two directives interact? They seem to sort of overlap.
I would like to set up multiple cgi directories. I have done this using the CGI-Alias setting, like so:
[CGI-Alias]
abc=c:\web\abc\cgi-bin
xyz=c:\web\xyz\cgi-bin
Now, this seems to work when I point my browser to http://localhost/abc/script.py and http://localhost/xyz/script.py, except that relative paths in the generated html are not resolved correctly: references to images at "../images/x.jpg" fail to find the file, and a style sheet link of "../file.css" fails to find the style sheet. If I move the style sheet into the cgi-bin directory with the scripts and change the link to "file.css" in the html, it works fine. Where is the server looking for the files that it can't find? How can I get these relative paths to work?
Many thanks!
Chris