On 8 Dec 98, at 9:57, Gordon Campbell wrote:

> Are there any Apache experts resident here? My host is running with
> Apache's default logs and neither of us can figure out how to turn on the
> referrer log. Help?

Personally, I would get another host if I were you.

Try this:

http://www.apache.org/docs-1.2/mod/mod_log_config.html

Don't bother buying the ORA apache book as it wouldn't help much.  
Have I missed something on the ORA apache book?  I thought even SAMS 
published a better book (but not by far).  Online and docs have given 
me the most answers.

>From the httpd.conf on one of my servers:

> # The following directives define some format nicknames for use with a
> # CustomLog directive (see below).
> 
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" combined

> # If you prefer a single logfile with access, agent and referer
> # information (Combined Logfile Format) you can use the following
> # directive.
> 
> CustomLog /usr/local/apache/logs/access_log combined

And with a virtual server,I don't use the combined log but write to a 
separate file:

<Host cordova.net>
 ServerName cordova.net
 ServerAdmin [EMAIL PROTECTED]
 DocumentRoot /usr/local/etc/httpd/htdocs/cordova
 TransferLog logs/access-cordova
 RefererLog logs/referer-cordova
 <SRMOptions>
 Alias /errors/ /usr/local/etc/httpd/errors/
 Alias /icons/ /usr/local/etc/httpd/icons/
 ScriptAlias /cgi-bin/ /usr/local/etc/httpd/htdocs/cordova/cgi-bin/
 ErrorDocument 404 /errors/forbidden.cgi
 ErrorDocument 401  /errors/auth.cgi
 </SRMOptions>
 </Host>

Peter
--------
The enduring goodness of the American military character over the past
two centuries does not automatically derive from our nation's
nutritional habits or from a good job benefits package. This character
must be developed and supported, or it will die. 
-By Daniel J. Rabil  http://www.wbap.com/marknote/note111298.html
____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to