custom log in website folder

Ryan Coleman ryan.coleman at
Tue Jul 20 13:55:21 UTC 2010

Assuming you're running apache make the virtualhost directive for the domain look something like this:

<VirtualHost *:80>
        DocumentRoot    /usr/local/v/site/logs/
        CustomLog       /usr/local/v/site/logs/ "combined"
        ErrorLog        /usr/local/v/site/logs/

Make the changes to the * if you need to and the domains.


On Jul 20, 2010, at 6:18 AM, Zbigniew Szalbot wrote:

> Dear all,
> All my website logs are in /var/log but one user would like to have
> access to a custom log specific to his site. Sites are in
> /usr/local/v/
> How can I make /var/log/custom.log available to him in /usr/local/v/site/logs/?
> Does it need a symlink? But will he be able to read the log if it is
> only a symlink to /var/log/custom.log?
> I'd appreciate your suggestions and sorry for asking a basically
> non-freebsd related question but this community has always been a
> wonderul source of inspiration and help.
> Thank you!
> Zbigniew Szalbot
> _______________________________________________
> freebsd-questions at mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list