Re: Patch to use ServerName when using LogSQLMassVirtualHosting option
Edward Rudd <[email protected]> Tue, 10 Apr 2007 19:56:50 -0400
| Newsgroups | gmane.comp.apache.mod-log-sql |
|---|---|
| Message-ID | <[email protected]> |
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1212730931== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7B1954F21A1D493D8303459D" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7B1954F21A1D493D8303459D Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks for the patch, I had not had a change yet to reply to your earlier e-mail. But I will definitely go through this and add it to the next release. Thanks. Raymond Sundland wrote: > Hi, >=20 > =20 >=20 > Since there does not seem to be much activity, I do not know how far > this email will go. I started to use mod_log_sql recently on my FreeBS= D > box and noticed the LogSQLMassVirtualHosting option used the hostname o= f > the request host (equivalent to the server=E2=80=99s HTTP_HOST variable= ) to > create it=E2=80=99s dynamic tables. After conferring with someone on I= RC who > also used mod_log_sql, I wrote a small patch that will provide an optio= n > for either using the HTTP_HOST for the table name or the ServerName > defined in your httpd.conf or VirtualHost configuration. >=20 > =20 >=20 > Basically, I created a new option called LogSQLUseServerName which can > be set to either on or off. Off is the default and replicates the > current behavior. On will make it use ServerName to create your tables= =2E >=20 > =20 >=20 > Patch as follows (use patch =E2=80=93p0 < patch) to apply to source. I= wrote > this patch from 101 so it may not work with earlier versions.=20 > Disclaimer: I am not a C developer, only a part time code hacker so th= e > code may not be 100% sane (but I believe it is). Use at your own risk.= =20 > Feel free to =E2=80=9Cfix=E2=80=9D if necessary, just do us all a favor= and give it back > to us. --------------enig7B1954F21A1D493D8303459D Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFGHCRCvwMxRUUct20RAr9KAJ0Rne9vnjUcADeJ91k/csQPoPpYFQCeN42M 3bMCVrjTbCAjlX18980sI9o= =jh8A -----END PGP SIGNATURE----- --------------enig7B1954F21A1D493D8303459D-- --===============1212730931== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1212730931==--