Re: Apache logfiles.
On Sat, Sep 14, 2002 at 05:05:11PM +0200, Robert Lindgren wrote:
> Howto log all request for a specific domain AND public_html associated
> with that domain to one logfile? Is there an easy solution for this in
> Apache that I'm missing?
i guess you mean that you want to log all requests for a virtual host
(e.g. www.example.com) AND the associated "tilde" user (e.g. ~example/)
to the same log file.
you can't do it. not directly, anyway.
what you can do is use apache RedirectMatch rules to redirect all
requests for http://your.host.name/~example to http://www.example.com
RedirectMatch 301 /~example($|/.*) http://www.example.com$1
see the apache documentation for more information on the Redirect rules
craig sanders <email@example.com>
Fabricati Diem, PVNC.
-- motto of the Ankh-Morpork City Watch