lighttpd set up virtual host - here with cacti

Here is an example config section setting up a subdomain with cacti monitoring taken from my lighttpd config file:

/etc/lighttpd/lighttpd.conf

$HTTP["host"] == "cacti.mydomain.tld" {
server.document-root = "/usr/share/cacti/site"
server.errorlog = "/var/log/lighttpd/error-cacti.log"
accesslog.filename = "/var/log/lighttpd/access-cacti.log"
}

That's all.

Comments

Popular Posts