blob: 94a36aa10e053fa20c9e3e0aef85d34baf40bd20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
###
# INSTRUCTIONS:
#
# If you would like to require authentication to access AWStats, then use ONE
# of the example configurations below. There are many other modules and
# options for authentication which will not be discussed here.
#
# NOTE: Related AWStats configuration directives are:
#
# AllowAccessFromWebToAuthenticatedUsersOnly=1
# AllowAccessFromWebToFollowingAuthenticatedUsers="user1 [user2 ...]"
#
# You can use these to set a per-domain user access when needed for virtual
# hosting. That means: only the selected user(s) will have access to stats for
# the particular domain. All other users will not be allowed to see the domain
# stats even though they have authenticated successfully.
###
###
# SECTION I - Basic Authentication
#
# The following example requires mod_auth (apache 2.0) or mod_auth_basic
# (apache 2.2) to work. Make sure you have installed and enabled it in
# /etc/apache2/httpd.conf
#
# Add your AWStats users to /etc/awstats/.htpasswd file.
# Please see 'man htpasswd2' for more details if you need.
#
# htpasswd2 -c /etc/awstats/.htpasswd username1 htpasswd2
# /etc/awstats/.htpasswd username2 etc...
###
#<Location "/cgi-bin/awstats.pl">
# AuthType Basic
# AuthName "AWStats authenticated zone"
# AuthUserFile /etc/awstats/.htpasswd
# Require valid-user
#</Location>
###
# SECTION II - Digest Authentication
#
# The following example requires mod_auth_digest to work. Make sure you have
# installed and enabled it in /etc/apache2/httpd.conf
#
# Do not forget to replace www.example.com as appropriate. You can also add as
# many domains as you need to this line.
#
# Add your AWStats users to /etc/awstats/.htdigest file. Please see 'man
# htdigest2' and http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html for
# more details if you need.
#
# htdigest2 -c /etc/awstats/.htdigest "AWStats authenticated zone" username1
# htdigest2 /etc/awstats/.htdigest "AWStats authenticated zone" username2
# etc...
###
#<Location "/cgi-bin/awstats.pl">
# AuthType Digest
# AuthName "AWStats authenticated zone"
# AuthDigestFile /etc/awstats/.htdigest
# AuthDigestDomain http://www.example.com https://www.example.com
# require valid-user
# # The following line is REQUIRED to work around a bug in MSIE.
# # See http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html
# BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
#</Directory>
|