Apache users Logs placing in home partition

rushost

Verified User
Joined
Aug 22, 2004
Messages
52
Hello

I changed template of virtual_host.conf:

CustomLog |HOME|/domains/|DOMAIN|/logs/|DOMAIN|.bytes bytes
CustomLog |HOME|/domains/|DOMAIN|/logs/|DOMAIN|.log combined
ErrorLog |HOME|/domains/|DOMAIN|/logs/|DOMAIN|.error.log

Now logs place in /home partition
Apache is Ok.

But DA don't use this logs

Hear
http://IP:2222/CMD_SHOW_LOG?domain=domainru&type=log&lines=10
it shows old logs from /var/log/httpd/domains) (for old domains)
and nothing shows for new domains
(but apache place logs in user homedir without problem)

I can change the path that DA uses by changing it in the /usr/local/directadmin/conf/directadmin.conf file (/var/log/httpd/domains). but it's only setup for all the logs being in one directory

Any suggestions?

May be instead of apachelogdir=/var/log/httpd/domains something like
usersapachelogdir=|HOME|/domains/|DOMAIN|/logs/
(need of using variable in config)
 
What you could do is add to the post user creation template to create the files in /var/log/httpd/domains as symlinks to their real location in the users home directory. It should work then because then everything would be in one central location pointing to the real files. :)
 
Back
Top