Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

logfile.ini [AccessLogFileSettings]

The settings of [AccessLogFileSettings] in logfile.ini: StorageDir, LogFileName, SitePrefix, PathPrefix, Host, Port, Hosts

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/logfile/AccessLogFileSettings.md

On this page

logfile.ini [AccessLogFileSettings]

The block [AccessLogFileSettings] of settings/logfile.ini, with 7 setting(s).

Never edit settings/logfile.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/logfile.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/logfile.ini.append.php for one siteaccess,
  • extension/<extension>/settings/logfile.ini.append.php in an extension (read when the extension is active).

StorageDir

The access log of a siteaccess. Set it in settings/override for a log every siteaccess shares,
or in settings/siteaccess/<siteaccess>/logfile.ini.append.php for a log of one siteaccess.
Storage of the log file, for example /var/log/httpd
Do not add trailing slash

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/logfile.ini.append.php
[AccessLogFileSettings]
StorageDir=
*/ ?>

LogFileName

The name of log file, for example mytest.log

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/logfile.ini.append.php
[AccessLogFileSettings]
LogFileName=
*/ ?>

SitePrefix

If using site match by URL, the site may like http://siteurl/mysite and
apache log will start with for example mysite/content/view/full/node_id. To
remove this prefix in apache log before analysis the log, add mysite to
SitePrefix. Example: SitePrefix[]=mysite
Only a whole first path element is removed. When several counted siteaccesses share the log,
the siteaccess matching removes the siteaccess's part of the path instead.

Default: a list of 1: ``.

<?php /* #?ini charset="utf-8"?
# settings/override/logfile.ini.append.php
[AccessLogFileSettings]
# an empty "SitePrefix[]" first replaces the shipped list; without it the items are added
SitePrefix[]
SitePrefix[]=
*/ ?>

PathPrefix

If any site accesses use the PathPrefix setting, enter them here
A path is looked up with each prefix in front first, then as it is. Empty: the PathPrefix
of the siteaccess's site.ini [SiteAccessSettings].

Default: a list of 1: ``.

<?php /* #?ini charset="utf-8"?
# settings/override/logfile.ini.append.php
[AccessLogFileSettings]
# an empty "PathPrefix[]" first replaces the shipped list; without it the items are added
PathPrefix[]
PathPrefix[]=
*/ ?>

Host

The host the log's requests were made to, for the siteaccess matching, when its lines do not
name one (the common and combined formats do not; vhost_combined does). Example: www.example.com

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/logfile.ini.append.php
[AccessLogFileSettings]
Host=
*/ ?>

Port

The port of the log's requests, for MatchOrder=port. Empty: 80.

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/logfile.ini.append.php
[AccessLogFileSettings]
Port=
*/ ?>

Hosts

Only lines of these hosts are counted for the siteaccess (a line that names no host takes
Host). Empty: every host. Example: Hosts[]=www.example.com

Default: an empty list.

<?php /* #?ini charset="utf-8"?
# settings/override/logfile.ini.append.php
[AccessLogFileSettings]
# an empty "Hosts[]" first replaces the shipped list; without it the items are added
Hosts[]
*/ ?>

Generated by ./console exp:help:examples from settings/logfile.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x