Forum

Hostnames for VirtualHost spread over several lines

Ben
9 May 2009, 00:51
Hi,

I would like to spread the "Hostname"-Parameter of the VHosts over several lines for the overview.

Would that be possible? I found that I have to write all hostnames in one line, this is a very long line if you have 20-Domains and more redireting to the same webroot.

Would be cool if you could find a way to make this possible.

Regards,
Ben.
Hugo Leisink
9 May 2009, 01:22
It is already possible. End a line with a backslash and Hiawatha will continue to read on the next line. Make sure the backslash is the last character on that line.
VirtualHost {
Hostname = www.hostname.com, www.hostname.org, \
hostname.net, hostname.nl
WebsiteRoot = /var/www
...
}
Ben
9 May 2009, 17:41
Cool, thanks.
This topic has been closed.