Possible bug with hyphens in URI and LogSQLMassVirtualHosting

Manuel Kiessling <[email protected]> Tue, 05 Oct 2004 18:32:33 +0200
Newsgroups gmane.comp.apache.mod-log-sql
Message-ID <[email protected]>
Hello,

maybe I found a bug. I installed mod_log_sql 1.99 with Apache 2.0.52, 
and I wanted to use its "LogSQLMassVirtualHosting" feature. But there 
was no table created. And I think I found the reason.

The domain I wanted mod_log_sql to log is something like

subdomain.firstpart-secondpart.tld

Note the hyphen ("-").

It seems like mod_log_sql correctly transforms the dots to underscores, 
but does not touch the hyphen.

Thus the table name is:

access_subdomain_firstpart-secondpart_tld

And that is the problem. MySQL doesn't like hyphens in its table names.

Can anyone verify this? Because I'm still a bit sceptical - should I 
really be the first mod_log_sql user who has a domain name with a hyphen 
in it?

-- 
  Manuel

_______________________________________________
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