Forum

Multiple files

Uzelth
11 July 2008, 00:10
Heya,

I'm running Ubuntu on a server and I want to be able to include anything in /etc/hiawatha/sites-enabled/. Is there a directive for this?

Cheers
Hugo Leisink
11 July 2008, 00:25
Yes, just Include for that.

Include /etc/hiawatha/sites-enabled
Uzelth
11 July 2008, 01:45
Fantastic. So far I'm loving this web server. Easily better than lighttpd or nginx (and walks over apache). I especially like that hiawatha starts the php-cgi.

I have a couple of other questions for the moment, if that's okay:

1) How can I specify more than one file for StartFile? I tried coma-separated, which it didn't like.
2) Is there any directory listing support at all? If so, how do I enable it?

I'm looking at implementing this in a custom hosting solution currently. So far it's really looking good!

Regards,
~ Uzelth
Hugo Leisink
11 July 2008, 02:53
1) How can I specify more than one file for StartFile? I tried coma-separated, which it didn't like.
2) Is there any directory listing support at all? If so, how do I enable it?


1) You can only specify 1 StartFile, but you can override it by using StartFile in a .hiawatha file in the directory that needs a different StartFile. It is faster to specify it via .hiawatha file then to make Hiawatha look for all the different possible startfiles.
2) Yup, just use 'ShowIndex = yes'. And with IndexStyle = /<stylesheet> you can alter to looks of the listing. See the manualpage for more information about that.

Please, keep me updated about your Hiawatha experiences. I'm always interested in some feedback in order to improve Hiawatha.
Uzelth
11 July 2008, 18:08
I've noticed one problem so far, which nginx also shared: PATH_INFO with CGI/FastCGI. Instead of locating the script, it returns a 404 instead.
Hugo Leisink
12 July 2008, 11:34
Can you please give me some more information about your problem? Like, the path of the file you where requesting, the URL which you used, etc.
Uzelth
12 July 2008, 20:50
Path: /home/exastate/domains/exastate.com/www/test.php
URL: http://exastate.com/test.php/test

Visiting /test.php works fine, it's only when I try using PATH_INFO that it returns a 404.
Hugo Leisink
13 July 2008, 02:57
I guess you've used EnablePathInfo for that (virtual) host, right?

VirtualHost {
...
EnablePathInfo = yes
}
Uzelth
13 July 2008, 17:41
Aaah, I wasn't aware of that one - I'll do that now, cheers
This topic has been closed.