Re: Re: 0 length robot.txt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It's described on the CustomLog docs: https://httpd.apache.org/docs/current/mod/mod_log_config.html#customlog

"The second argument specifies what will be written to the log file. It can specify either a ***nickname*** defined by a previous LogFormat directive, or it can be an explicit ***format*** string as described in the log formats section. "

Either you use this way:
  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  CustomLog /home/user/logs/XXX.access_log combined

Or this way:
  CustomLog "/home/user/logs/XXX.access_log"  "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" 

You see, "combined" is just a nickname to the LogFormat, you can add something like "my-site-special-log-format" and as long as you call it on the CustomLog it will work, cause it's just an alias.

On Sat, Oct 6, 2018 at 8:51 PM @lbutlr <kremels@xxxxxxxxx> wrote:
On 03 Oct 2018, at 17:11, @lbutlr <kremels@xxxxxxxxx> wrote:
> It’ been over 4 hours now (almost 5) and the site is still responding perfectly.

Well, I am more confused. I changed the log from common to debug and the site has been fine for days now.

-  CustomLog /home/user/logs/XXX.access_log combined
+  CustomLog /home/user/logs/XXX.access_log debug

This was a mistake, as it simply logs “debug” now, so the logs are useless, but the site is up.

In https.conf:
 LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

¯\_(ツ)_/¯

--
ALL WORK AND NO PLAY MAKES BART A DULL BOY ALL WORK AND NO PLAY MAKES
BART A DULL BOY ALL WORK AND NO PLAY MAKES BART A DULL BOY Bart
chalkboard Ep. 1F07er}i\" \"%{User-Age
nt}i\"” combined



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



--
[ ]'s

Filipe Cifali Stangler

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux