Forum

Hiawatha reverse-proxy

Fred
12 August 2015, 16:39
Hi Hugo,

I use a Hiawatha reverse-proxy and I have many domain set in it.
In order for any new domain that I add to the config file, I have to restart Hiawatha for the new settings to take place.

By doing that, all my website are offline when the restart occure and this cause customer to complain and also loosing shopping card transaction...

Could you please tell me if there is a way to have the new config to be loaded at runtime?
VirtualHost {
Hostname = www.mynewdomain.com, mynewdomain.com, *.mynewdomain.com
ReverseProxy .* http://10.10.50.14/
AccessLogfile = /var/log/hiawatha/mynewdomain.access.log
ErrorLogfile = /var/log/hiawatha/mynewdomain.error.log
WebsiteRoot = /var/www/empty
}
Hugo Leisink
13 August 2015, 11:03
At the moment, it is not possible. But, I'm already thinking about a solution. Will the following work for you?

I'm thinking about a sort of host container option. A host container is a directory which containers subdirectories. Each subdirectory is named after the virtual host it is for. All the hosts within a host container share the same configuration. Only the hostname is different. You can simply add a new virtual host by adding a new subdirectory within a host container. You can of course use this for permanent web hosting, but also as a temporary solution until the configuration is reloaded. In that case, the host container only contains symlinks to new virtual host directories.
Fred
17 August 2015, 15:37
Hi Hugo,

I have to say that you lost me a bit. I understand that I need a create a directory called "host" that has sub directory as subdirdom1, subdidom2 etc..
But thsi is as far as I got. When do i put the config file?
Hugo Leisink
17 August 2015, 18:17
What I described does not work yet in Hiawatha, but it might be something I can implement.
This topic has been closed.