Usage Log Mix

altayevrim

Verified User
Joined
Oct 6, 2019
Messages
23
I just discovered this one and it is actually a funny bug I think.

So I have a
  • domain.com
  • domain.com.tr
And I didn't notice until today, but I also have a subdomain tr on domain.com (tr.domain.com) Normally this works very well. When I want to reach tr.domain.com, I get it, and domain.com.tr is also another webpage, works well.

But the problem is the Usage logs. When I want to check usage logs of domain.com.tr (evo/user/stats/webalizer), instead of the domain.com.tr I get the subdomain usage logs of tr.domain.com

Usage Logs of tr.domain.com that I can reach from Subdomain Management Page (evo/user/subdomains) works as intended and I see the same log file.

I know it's not a thing that you usually encounter, and I have this setup for more than 2 years and I just noticed now, so I don't usually care either. But wanted to let you know :) But you can't imagine how I look at the log files and see the paths that shouldn't be on the domain.com.tr. It was funny 😅
 
Haha, that’s actually pretty funny! 😅 I can totally see how those log paths would make you do a double take. Sounds like the system is just matching “tr” wherever it finds it. Good catch though—definitely a rare one!
 
Indeed it was. But now I see that it's not directadmin's fault to display the wrong logs. When I wanted to check domain.com.tr's logs, I still see tr.domain.com's logs.
So I think it is not due to log viewer but this bug occurs on when creating the logs. Nevertheless I don't actually care a lot about the domain.com.tr logs since it is an website without even a webpage.
 
I just discovered this one and it is actually a funny bug I think.

So I have a
  • domain.com
  • domain.com.tr
And I didn't notice until today, but I also have a subdomain tr on domain.com (tr.domain.com) Normally this works very well. When I want to reach tr.domain.com, I get it, and domain.com.tr is also another webpage, works well.

But the problem is the Usage logs. When I want to check usage logs of domain.com.tr (evo/user/stats/webalizer), instead of the domain.com.tr I get the subdomain usage logs of tr.domain.com

Usage Logs of tr.domain.com that I can reach from Subdomain Management Page (evo/user/subdomains) works as intended and I see the same log file.

I know it's not a thing that you usually encounter, and I have this setup for more than 2 years and I just noticed now, so I don't usually care either. But wanted to let you know :) But you can't imagine how I look at the log files and see the paths that shouldn't be on the domain.com.tr. It was funny 😅
This appears to be a log path overlap issue caused by the subdomain tr.domain.com and the country domain domain.com.tr sharing similar identifiers in the logging configuration. Since Webalizer or the DirectAdmin stats system likely uses the domain prefix to map log files, it mistakenly associates both with the same log source. You can resolve or avoid this by manually checking the log file paths in /var/log/httpd/domains/ (or /var/log/nginx/domains/) and renaming one of the log references or adjusting the subdomain naming convention to avoid duplication. It’s a rare but harmless quirk, and your setup is fine otherwise—just a good reminder to keep unique naming structures for domains and subdomains.
 
Back
Top