|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi all,
I have the following issue: My apache2 is setup with Dynamic Virtual Hosts, so as long as the right directory stucture exists I can serve the website (e.g. the website www.domain.com relies on the existance of the path /home/sites/domain.com/www.domain.com/html) But all logentries for all my domains end up in one place, /home/logs/accesslog Is there a way to automatically generate a logfile per 'dynamic domain' so in the example above that automatically a logfile is made like /home/logs/accesslog_www.domain.com? Thanks in advance, Dr.Bob |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 2007-05-08, Dr.Bob <dr.bob.says.no.to.spammm@xs4all.nl> wrote:
> Is there a way to automatically generate a logfile per 'dynamic domain' so > in the example above that automatically a logfile is made like > /home/logs/accesslog_www.domain.com? You could pipe the logs into a script and do the splitting there, or process the logs at logrotating time and split them at once. Davide -- "A copy of Windows 95 and 4x4 MB of SIMMs, please." |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On May 8, 12:10 pm, "Dr.Bob" <dr.bob.says.no.to.spa...@xs4all.nl>
wrote: > Hi all, > > I have the following issue: My apache2 is setup with Dynamic Virtual Hosts, > so as long as the right directory stucture exists I can serve the website > (e.g. the websitewww.domain.comrelies on the existance of the path > /home/sites/domain.com/www.domain.com/html) > > But all logentries for all my domains end up in one place, > /home/logs/accesslog > > Is there a way to automatically generate a logfile per 'dynamic domain' so > in the example above that automatically a logfile is made like > /home/logs/accesslog_www.domain.com? > > Thanks in advance, > Dr.Bob its not generally a good idea to have of the order of a hundred files open at once like that. http://httpd.apache.org/docs/2.0/vhosts/fd-limits.html I use DCMVH too, and use one log file which I split each night using cron. have you seen the apache docs on piping your log file thtugh a splitting script, so its"live" this is great is you can rely on your script not to hang. http://httpd.apache.org/docs/2.0/logs.html#piped |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Sounds like a great solution :-)
Thank both, for the directions! Dr.Bob "Dr.Bob" <dr.bob.says.no.to.spammm@xs4all.nl> wrote in message news:46405a4c$0$22675$e4fe514c@dreader31.news.xs4a ll.nl... > Hi all, > > I have the following issue: My apache2 is setup with Dynamic Virtual > Hosts, so as long as the right directory stucture exists I can serve the > website (e.g. the website www.domain.com relies on the existance of the > path /home/sites/domain.com/www.domain.com/html) > > But all logentries for all my domains end up in one place, > /home/logs/accesslog > > Is there a way to automatically generate a logfile per 'dynamic domain' so > in the example above that automatically a logfile is made like > /home/logs/accesslog_www.domain.com? > > Thanks in advance, > Dr.Bob > |
|
![]() |
| Outils de la discussion | |
|
|