Question on Server Log :

I have been trying for a while to figure out how to get individual log files for my virtual hosts. All the configurations I try. Apache fails to load until I go back and remove what I tried.

Can someone tell me which files I need to edit and please provide working examples?

I don’t know what I am doing wrong, but I am still new at this.

Thank for any help you can give.

Answer :

CustomLog needs to be inside the <VirtualHost> container it applies to. Not sure if you had it that way or not.

It looks like you stuck a little too closely to the Apache manual when defining your logfile path.
Try pointing the path to a directory you have access too, but is not in the public_html folder. You may even have some sort of “logs” directory in there with a log rotation daemon watching it already.

Considering it appears you’re trying to log referers, I’m guessing you might not want automatic log rotation anyways.

Where you have

TransferLog logs/vhost_access_log

Use this, or a variation pointing somewhere you have access too, instead.

CustomLog /home/username/logs/socom.referer.log referer