Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jul 2010 08:42:08 -0500
From:      Ryan Coleman <ryan.coleman@cwis.biz>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: custom log in website folder
Message-ID:  <C8ABDC4C-84C9-483C-9881-1EF45682A3A6@cwis.biz>
In-Reply-To: <AANLkTilyn1hPVUaLXYEhJJnjZtRmlPlASuXync1XP497@mail.gmail.com>
References:  <AANLkTilyn1hPVUaLXYEhJJnjZtRmlPlASuXync1XP497@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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,
>=20
> 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/
>=20
> How can I make /var/log/custom.log available to him in =
/usr/local/v/site/logs/?
>=20
> 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?
>=20
> 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.
>=20
> Thank you!
>=20
> Zbigniew Szalbot
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to =
"freebsd-questions-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C8ABDC4C-84C9-483C-9881-1EF45682A3A6>