custom log in website folder
Ryan Coleman
ryan.coleman at cwis.biz
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>
ServerName domain.com
ServerAlias www.domain.com
DocumentRoot /usr/local/v/site/logs/domain.com/htdocs/
CustomLog /usr/local/v/site/logs/domain.com/logs/access_log "combined"
ErrorLog /usr/local/v/site/logs/domain.com/logs/error_log
</VirtualHost>
Make the changes to the * if you need to and the domains.
--
Ryan
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 freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list