Re: multiple domains one log file

Hajj Abujamal <[email protected]>
Newsgroups gmane.comp.web.analog.general
Organization http://www.muslimamerica.net/
Message-ID <[email protected]>
Salaam!

Hildreth, Steve wrote:

 > Thanks all for the clarification and information.  I'll work
 > with the System Admins to implement the correct logging.

    I'm working with a server that does not have any provision for 
changing the logging format other than to turn it on or off.  It does 
not indicate virtual domains.

    In addition, most servers support either the "Common Log Format" 
or the "Extended Common Log Format" or both.  Neither of these has a 
provision for "Virtual host."  See 
http://www.muslimamerica.us/aj/eclf.htm for an explanation of these 
log formats.

    Here's a possible solution:

    Create under each virtual root one folder that identifies the 
virtual domain.  Make these unique names.  Then each GET, POST, or 
other request will show as "GET /<identifier>/path/object" and you can 
instruct Analog to include only lines with the particular identifier 
you want.  You'll have to figure out how to eliminate lines on domain 
"a" that include referrers from domain "a" but actually are on domain 
"b" but I'm sure you can work that out.

    This will mean that each virtual root will contain only one item, 
which is the identifying subfolder under which is everything that was 
formerly under the virtual root.  All the links, everywhere on the 
Web, that point to anything on your sites, will be broken, UNLESS your 
server keeps track of such changes and refers the requests to the new 
location (i.e., "under the identifier").

    There is one other possibility, but I don't know how to implement 
it.  This would involve using "authentication" in an unusual way.

    The third field in both the Common Log Format and the ECLF is 
"authuser."  This is only shown when the client is required to log in 
with a username and password.  If you can figure out how to 
"auto-authenticate" visitors with a script of some sort in the virtual 
root of each domain, then this third field can contain the name of the 
virtual domain, and you can configure Analog to use it to separate the 
logs.  (The "username" and "password" auto-entered on the client side 
will persist until the client replaces it with another or restarts his 
browser.)  Usually the visitor is presented with a popup box demanding 
a username and password ~ if you can write the code to fill in those 
blanks and return the challenge transparently, then this will fill in 
that third field in the log lines.

    And yes, I would be very interested in obtaining such a script. 
Meanwhile, I'll present the problem to my youngest son, who is much 
more likely to know how to do it than I am.

 > Steve

was-salaam,
abujamal
-- 
astaghfirullahal-ladhee laa ilaha illa
howal-hayyul-qayyoom wa 'atoobu 'ilaihi

Rejoice, muslims, in martyrdom without fighting,
a Mercy for us.  Be like the better son of Adam.

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.