Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow LogSeparator to be modified by env file. #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion confs/awstats_env.conf
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ LogFormat="$AWSTATS_CONF_LOGFORMAT"
# Example: ","
# Default: " "
#
LogSeparator=" "
LogSeparator="$AWSTATS_CONF_LOGSEPARATOR"


# "SiteDomain" must contain the main domain name, or the main intranet web
Expand Down
5 changes: 3 additions & 2 deletions test/sites/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,18 @@ can be placed:
* `.env` files, containing only several variables for quick config substituted in [awstats_env.conf](../awstats_env.conf)
* complete `.conf` files, containing a complete `awstats` `CONFIGURE FILE 7.3` like [geotracing.com.conf](geotracing.com.conf)

In an `.env` file the following vars can be specified, as example below:
In an `.env` file ALL the following vars must be specified, as example below:

```
AWSTATS_CONF_LOGFILE=/var/local/log/map5.nl/map5.nl-access.log
AWSTATS_CONF_LOGFORMAT="%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"
AWSTATS_CONF_SITEDOMAIN=map5.nl
AWSTATS_CONF_LOGSEPARATOR=" "
AWSTATS_CONF_DNSLOOKUP=1
AWSTATS_CONF_DEBUGMESSAGES=1
AWSTATS_CONF_HOSTALIASES=www.map5.nl

```
```

## Notes

Expand Down
1 change: 1 addition & 0 deletions test/sites/demo.pygeoapi.io-master.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
AWSTATS_CONF_LOGFILE=/var/local/log/demo.pygeoapi.io/traefik.log
AWSTATS_CONF_LOGFORMAT="%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot %other %virtualnamequot %otherquot %other"
AWSTATS_CONF_LOGSEPARATOR=" "
AWSTATS_CONF_SITEDOMAIN="Host-demo-pygeoapi-io-localhost-PathPrefix-master-22"
AWSTATS_CONF_DNSLOOKUP=1
AWSTATS_CONF_DEBUGMESSAGES=1
Expand Down
1 change: 1 addition & 0 deletions test/sites/demo.pygeoapi.io.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
AWSTATS_CONF_LOGFILE=/var/local/log/demo.pygeoapi.io/traefik.log
AWSTATS_CONF_LOGFORMAT="%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot %other %virtualnamequot %otherquot %other"
AWSTATS_CONF_LOGSEPARATOR=" "
AWSTATS_CONF_SITEDOMAIN="Host-demo-pygeoapi-io-PathPrefixStrip-1"
AWSTATS_CONF_DNSLOOKUP=1
AWSTATS_CONF_DEBUGMESSAGES=1
Expand Down
1 change: 1 addition & 0 deletions test/sites/map5.nl.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
AWSTATS_CONF_LOGFILE=/var/local/log/map5.nl/map5.nl-access.log
AWSTATS_CONF_LOGFORMAT="%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"
AWSTATS_CONF_LOGSEPARATOR=" "
AWSTATS_CONF_SITEDOMAIN=map5.nl
AWSTATS_CONF_DNSLOOKUP=1
AWSTATS_CONF_DEBUGMESSAGES=1
Expand Down