Logmonster vhost detection

The default method of learning about your virtual hosts is by parsing Apache server files. This is described in the FAQ, but the gist of that method is that you configure Apache and logmonster configures itself. But, what if you are using lighttpd? Or Apache with the Dynamically Configured Mass Virtual Hosting Method?

Basically you store all the virtual hosts within a given space on your file system. For example:

/var/www/example1.com/html /var/www/example2.com/html

and so on. On my server, I also create symlinks for domain aliases. For example, if I wanted to alias example1.org to example.com, I'd do it like so:

cd /var/www; ln -s example1.com example1.org

In that way, requests to but URLs are served from the same files on disk, and no alterations to the web servers config files are required.

To specify this setup for logmonster, you would set vhost as follows:

vhost = /var/www//html

Logmonster will detect that example1.org is a symlink and process its web traffic to the primary vhost, example1.com.