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)
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)