No subject


Sat Feb 14 08:50:28 EST 2009


&amp;<br>
What I found to fill in the dead reference to the CustomLog directive:<br>
<a class="moz-txt-link-freetext" href="http://httpd.apache.org/docs/1.3/mod/mod_log_config.html">http://httpd.apache.org/docs/1.3/mod/mod_log_config.html</a><br>
<br>
I find examples a big help. Perhaps this will save someone the few
minutes' experimentation it took me to arrive at how to make the info
in the references on the configuration actually work in my environment.
Here's what took care of this on an Ubuntu 8.04 (Hardy) install:<br>
<br>
Changed the port order in /etc/apache2/ports.conf to read:<br>
<br>
&lt;IfModule mod_ssl.c&gt;<br>
&nbsp;&nbsp;&nbsp; Listen 443<br>
&lt;/IfModule&gt;<br>
<br>
Listen 80<br>
<br>
Added the SetEnvIf &amp; CustomLog lines to apache2.conf right after
the LogFormat directives:<br>
<br>
# (this stuff was already there)<br>
#<br>
# The following directives define some format nicknames for use with<br>
# a CustomLog directive (see below).<br>
# If you are behind a reverse proxy, you might want to change %h into
%{X-Forwarded-For}i<br>
#<br>
LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined<br>
LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common<br>
LogFormat "%{Referer}i -&gt; %U" referer<br>
LogFormat "%{User-agent}i" agent<br>
<br>
# (newly added)<br>
# Avoid the logging of can't talk to myself via SSL<br>
SetEnvIf Remote_Addr "127\.0\.0\.1" loopback<br>
CustomLog common env=!loopback<br>
# (end of newly added)<br>
<br>
Note the use of the "common" nickname defined in the LogFormat
directive above (the "(see below)" note in the comments on the
LogFormat directives proved to be a null pointer, so to speak--as there
was no other reference to CustomLog other than that mention in the
comments).<br>
<br>
<br>
</body>
</html>


More information about the Open-ils-dev mailing list