Problem with stats and manually created subdomains Hello, I have some domains with a lot of subdomains *.domain.net, but not in the same directory as www.domain.net. So I add a Apache config file to add the subdomains. No problem. But how can I set the logs in the same access.log file that ISPConfig? Is it something like in the ispconfig.conf file: CustomLog "| /usr/local/ispconfig/server/scripts/vlogger -s access.log -t \"%Y%m%d-access.log\" /var/log/ispconfig/httpd" combined_ispconfig I have set: CustomLog /var/log/ispconfig/httpd/domain.net/access.log combined_ispconfig it's OK immediatly, but sometimes it stops working and logs are lost.
This line loggs all vhosts, the ones created by ispconfig and also ones that you created manually. The log files are stored by domain name in /var/log/ispconfg/httpd/
Do you mean created manually, but in ISPConfig? Or I can remove all the lines "CustomLog ..." it will be done automatically? in the same log as the domain created in ISPConfig?
No, the logs files do not change when I delete my CustomLog instructions... My Apache config for each new subdomain is like: Code: <VirtualHost *:80> ServerName boutique.kiao.net ServerAlias store.kiao.net ServerAlias laden.kiao.net ServerAlias negozio.kiao.net ServerAlias tienda.kiao.net DocumentRoot /var/www/kiao.net/web_sousdomaines/boutique [I]# CustomLog /var/log/ispconfig/httpd/kiao.net/access.log combined_ispconfig[/I] ErrorLog /var/log/ispconfig/httpd/kiao.net/error.log </VirtualHost> And I understand why CustomLog /var/log/ispconfig/httpd/domain.net/access.log combined_ispconfig does not work correctly: the link access.log changes everyday, but not for Apache. So I need to indicate the real file with YYYYMMDD-access.log.
Oh, yes but it creates logs with the ServerName, but I neeed the same log, ie only domain.net. A solution?
I think I find a solution. I will see tomorrow if rotation is correct, but I defined several new LogFormats for my subdomains, with the domain in plain text: LogFormat "kiao.net %v %h %l %u %t \"%r\" %>s %B \"%{Referer}i\" \"%{User-Agent}i\"" combined_kiao (new name) vlogger create the directory based on the fist argument, so all subdomains using this format are stored in the same directory. That's what I wanted.