Forum

.hiawatha permitted configuration options

JGM
16 June 2011, 08:11
Hiawatha version: 7.5
Operating System: Debian 6.0

Hi,

I was trying to add the following configuration to a .hiawatha file but the server gave a 500 internal server error
UrlToolkit {
ToolkitID = my_toolkit
RequestURI exists Return
Match /(.*)\?(.*) Rewrite /index.php?p=$1&$2
Match /(.*) Rewrite /index.php?p=$1
}

So this kind of options are only permitted on the main configuration file? also trying to add the StartFile option on the .hiawatha file produced a 500 error.

So in the case that a user without administration rights wants to add a custom url rewrite rule, would have to contact and adming to add it on the main configuration file?

Is there any documentation on which configuration options are permitted on the .hiawatha file?

Also cant I declare UseFastCGI when using an alias?

Thanks in advance and best regards! (this software rocks - using it on my sheevaplug that now can breath after disabling apache2)
Hugo Leisink
16 June 2011, 08:56
UrlToolkit blocks are indeed not allowed in a .hiawatha file. Reason for this is 'speed'. It takes some time to 'compile' the regular expressions. Caching the regular expressions causes all sort of issues due to the multithreaded nature of the application.

The StartFile option however is allowed in a .hiawatha file. The reason for the 500 is probably because you gave it a bad value. Which options are allowed in a .hiawatha file is described in the manual page.
JGM
16 June 2011, 18:30
Oops I completely missed the "USER SETTINGS PER DIRECTORY" chapter while reading the man pages on the console (I'm almost blind), sorry for that.

Thanks for the fast response I'm happy I discovered your software, it has everything some one would need without the bloat and it is easy to configure (compared to other complicated webserver software). I have already converted a friend from apache to this after just discovering it I love the anti DOS and ban features, really necessary.

I'm dreaming about a mini data-center consisting of plug computers with this software on it

Best Regards
Hugo Leisink
16 June 2011, 19:14
No problem. Good to hear you like my work. And good job about the conversion. One Apache down, 6 million to go
This topic has been closed.