httpd Access_log showing few other domains

BBM

Verified User
Joined
Jun 8, 2013
Messages
399
Location
Dutch Mountains
On my CentOS VPS with some 80+ domains, httpd Access_log shows entries from 2 or 3 additional domains on the server, besides the normal localhost-entries.

The username and it's domain showing up in access_log have been renamed in the past and has/is a domainpointer.

Just trying to find out why this happens;
What error or setting could cause the entries to show up aswell in /var/logs/httpd/access_log and their own homedir-log?
 
I've sent you a PM with a link to some screenshots of DA and the domain configs.

Forgot to mention in the PM, the "ampag-com.jpg" file is there as an example domain that Doesn't appear in the access_log.

Thanks.
 
I don't see anything wrong on screenshots you sent. Does the issue still persist? What version is apache on your server? Did you try to restart it?
 
Thanks for checking the images.

Apache 2.4.10
DirectAdmin 1.45.4
Named 9.8.2rc1
Php 5.4.32

Yes it's still happening. I believe it has been happening for a long time already. I know the server has been restarted a few times in the mean time (As a matter of fact my server just ran out of memory because of some repeated requests and had to be restarted).

I recently started noticing it after I added '%V' to httpd.conf in the logging directions, which then showed domains in the access_log.

The domains showing up in the access_log are one of the first domains that were added into DA after I moved everything over from a reseller hosting-environment.
 
Just noticed something, 2 of the 3 domains are not present in /var/log/httpd/domains/ (eplo*.nl + bigbl*.com), but explo*cing.com is, but it's files haven't been altered since well over a year at Mar 30 2013.
All domains listed have the same permissions. ( -rw-r--r-- 1 root root )

Also, there are a number of domains still present in /var/log/httpd/domains, but which are deleted and no longer in DA.

I'm also seeing this in /var/log/httpd/
Code:
drwx--x---. 2 root nobody   36864 Sep 12 00:10 domains

Is 'nobody' correct here?
 
Also, there are a number of domains still present in /var/log/httpd/domains, but which are deleted and no longer in DA.
Do you really want logs deleted when a site is? I'm not sure I do, since they're not backed up anywhere. I'd like to see them rotated as most other logs are.

That said, I'm not sure how they're managed. I do know they don't take up that much space, but all our servers have been put into service within the past several months and we no longer have access to the drives from the servers we took out of service, they've been wiped.

Does anyone know if/when/how logs in /var/log/httpd/domains are rotated?

Jeff
 
Looking at the log-dates, I think the httpd domain- "bytes" logs are rotated every day upto the amount given in the DA System settings;
"Keep Number of Apache Log Backups ". Which is 3 in my case.
The regular log and error-log, I only see 1 file of each per domain.

I don't really need to see domain-logs being deleted when a domain/user gets deleted from DA, but I think it would be nice to have the logs automaticly purged of old logs of say a month after the domain deletion in DA orso. (Or maybe just a variable timespan entered by the admin in the DA-settings).
 
I think what I'd like to see is regular rotation, but for no new ones to be created after the user is deleted. But that may be anywhere from hard to difficult to set up with logrotation scripts, which are set up to rotate system logs not domain logs.

Jeff
 
Back
Top