[Mod_log_sql] LogSQLMassVirtualHosting and mod_vhost_alias

webmaster at gleitgeb.at webmaster at gleitgeb.at
Sat Jan 21 19:37:35 EST 2006

it would be quite enough to extend the version before to check if between
the last dot and the one before are only 2 characters and if yes check for a
third dot.

Because its not possible to register domains with its name (without
extension) less than 3 characters.

Best regards
Günther Leitgeb

----- Original Message ----- 
From: "Dice R. Random" <dicerandom at gmail.com>
To: "General mod_log_sql discussion" <mod_log_sql at lists.outoforder.cc>
Sent: Sunday, January 22, 2006 1:13 AM
Subject: Re: [Mod_log_sql] LogSQLMassVirtualHosting and mod_vhost_alias

On 1/21/06, Dave Steinberg <dave at redterror.net> wrote:
> Just from glancing at the patch, it seems like it won't work well with
> domains like foobar.co.uk (since it only looks for 2 dots).
> Perhaps there's a way to specify a regular expression instead, and have
> it strip off whatever matches?
> LogSQLStripRegex ^www\.
> Just a suggestion.  :)

Ooh, you're right, I didn't think of that.  We don't have any .co.uk
customers ;)

I think the problem with the regex approach is that we need to be able
to strip off a wide variety of different subdomains.  For instance one
of our customers has a subdomain hername.herdomain.com which is her
personal site in addition to www.herdomain.com which is her business
site; we'd like to be able to log both sites under a single table.

Maybe if we had a list of TLDs and the various government run
subdomains under the ccTLDs that we could check against?
Download the latest version at

To unsubscribe send an e-mail to
mod_log_sql-unsubscribe at lists.outoforder.cc

More information about the Mod_log_sql mailing list