Re: LogSQLMassVirtualHosting and mod_vhost_alias
<[email protected]> Sun, 22 Jan 2006 01:37:35 +0100
| Newsgroups | gmane.comp.apache.mod-log-sql |
|---|---|
| Message-ID | <000d01c61eec$0bd26210$c60210ac@gllaptop> |
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" <[email protected]> To: "General mod_log_sql discussion" <[email protected]> Sent: Sunday, January 22, 2006 1:13 AM Subject: Re: [Mod_log_sql] LogSQLMassVirtualHosting and mod_vhost_alias On 1/21/06, Dave Steinberg <[email protected]> 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 http://www.outoforder.cc/projects/apache/mod_log_sql/ To unsubscribe send an e-mail to mod_log_sql-unsubscribe-7qY7E20V6GW73k+5HYS8LQqVMODqnSLI@public.gmane.org _______________________________________________ Download the latest version at http://www.outoforder.cc/projects/apache/mod_log_sql/ To unsubscribe send an e-mail to mod_log_sql-unsubscribe-7qY7E20V6GW73k+5HYS8LQqVMODqnSLI@public.gmane.org