Weblog

25 November 2015, 20:06

Today, I've released a new major version of the Hiawatha webserver. The biggest change in v10.0 is a different way of handling Directory sections. The path is now relative to the document root of a website.

VirtualHost {
    Hostname = www.example.com
    ...
    UseDirectory = static, files
}

Directory {
    DirectoryID = static
    Path = /css, /fonts, /images, /js
    ExpirePeriod = 2 weeks
}

Directory {
    DirectoryID = files
    Path = /files
    ShowIndex = yes
}

Another new feature is the support for GZip content encoding, which makes the UseGZfile obsolete. The rest of the new features can be found in the ChangeLog.

Heiko
25 November 2015, 20:41
Successful tested on Raspbian Jessie, Debian testing and OpenBSD current. Thank you Raspbian files updated.
Pascal
26 November 2015, 00:42
There seems to be an error in your config example - the last section should probably be a Directory section and not a VirtualHost section.
Hugo Leisink
26 November 2015, 01:40
Yes, thanks!
Gilad
26 November 2015, 09:06
As always Hugo - outstanding job!
Smooth and so far painless upgrade on a Debian machine.
VirginSteele
26 November 2015, 09:13
Any changes from the 10.0 beta version?
Morgan
8 December 2015, 09:47
Any chance the manpages can get updated to reflect the new changes? Took me a little while to figure out why my Directory sections and .hiawatha files weren't working
J. Lambrecht
27 December 2015, 19:52
Ah, some great features there.
Slapo
11 January 2016, 11:36
It's good to see a new release.
I tried looking for any options to control the gzip compression, but I couldn't find it in the manual. Are there any such options available?
Is it possibly to emulate the old UseGZfile option somehow? I'd guess using a rewrite could be an option, but wouldn't there be a performance penalty compared to the old option?

Thanks.
Hugo Leisink
11 January 2016, 12:54
The good thing about the new approach is that it doesn't require any configuration. If the browser tells the webserver that it supports compression, it will be used.
Slapo
12 January 2016, 13:02
Thanks for getting back to me, that's good news.

Cheers. :-)