Re: [users@httpd] Wildcard DNS with Separate Subdomain Log Files

2005-05-27 Thread Jean-Christophe Montigny
Nonono You need a cron job that will run the command : cat access.log | /path/to/split-logfile it will create the logfiles to the directory where split-logfile is stored. You may want to edit the script a little so it outputs the logfiles to a given directory. You merely need to change the

Re: [users@httpd] Wildcard DNS with Separate Subdomain Log Files

2005-05-27 Thread Ben Fryer
Hi Jean Thank you great answer, just what I was looking for! One final question ;) can I just check how I should use split-logfile CustomLog "|/apache/split-logfile >> /path/to/user/logs/access_log" vhost Something like that? Thanks again Ben - Original Message - From: "Jean-Christ

Re: [users@httpd] Wildcard DNS with Separate Subdomain Log Files

2005-05-27 Thread Jean-Christophe Montigny
Hello, Just add a new definition of log format possibly called "vhost" : copy the "combined" log format and add a %h at the beginning of the definition. %h stands for "virtual host name". Everything will be logged to the regular access.log except the log lines will look like : user1.mydomain

[users@httpd] Wildcard DNS with Separate Subdomain Log Files

2005-05-27 Thread Ben Fryer
Hi All We have apache configured using wildcard DNS *.mydomain.com The site has members who on sign up can instantly access their version of the site. user1.mydomain.com user2.mydomain.com ... We use a single VirtualHost definition that captures *.mydomain.com rewrites to a script that extr