Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 81978 | Differences between
and this patch

Collapse All | Expand All

(-)postinst-en.txt (-137 lines)
Lines 2-9 Link Here
2
Alias /awstats/css "/usr/share/webapps/awstats/PVR/htdocs/css/"
2
Alias /awstats/css "/usr/share/webapps/awstats/PVR/htdocs/css/"
3
Alias /awstats/icons "/usr/share/webapps/awstats/PVR/htdocs/icon/"
3
Alias /awstats/icons "/usr/share/webapps/awstats/PVR/htdocs/icon/"
4
ScriptAlias /awstats/ "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin/"
4
ScriptAlias /awstats/ "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin/"
5
ScriptAlias /awstats "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin/awstats.pl"
6
ScriptAlias /awstats.pl "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin/awstats.pl"
7
5
8
<Directory "/usr/share/webapps/awstats/PVR/htdocs">
6
<Directory "/usr/share/webapps/awstats/PVR/htdocs">
9
    Options None
7
    Options None
Lines 22-159 Link Here
22
	Allow from all
20
	Allow from all
23
    </IfModule>
21
    </IfModule>
24
</Directory>
22
</Directory>
25
26
###
27
# NOTE: The following sections are strictly optional. Please read
28
# and follow carefully all the instructions before uncommenting
29
# any lines. Examples shown below are for Apache 2.0.x ONLY.
30
###
31
32
###
33
# INSTRUCTIONS:
34
#
35
# If you would like to require authentication to access AWStats,
36
# then uncomment ONE of the example Directory sections below.
37
#
38
# NOTE: Related AWStats configuration directives are:
39
#
40
# AllowAccessFromWebToAuthenticatedUsersOnly=1
41
# AllowAccessFromWebToFollowingAuthenticatedUsers="user1 [user2 ...]"
42
#
43
# You can use these to set a per-domain user access when needed 
44
# for virtual hosting. That means: only the selected user(s) will have
45
# access to stats for the particular domain. All other users
46
# will not be allowed to see the domain stats even though they
47
# have authenticated successfully.
48
###
49
50
###
51
# SECTION I - Basic Authentication
52
#
53
# The following example requires mod_auth to work.
54
# You need to uncomment the following line in apache2.conf 
55
# and restart Apache to get the module loaded:
56
#
57
# LoadModule auth_module                   modules/mod_auth.so
58
#
59
# Add your AWStats users to /etc/awstats/.htpasswd file.
60
# Please see 'man htpasswd2' for more details if you need.
61
#
62
# htpasswd2 -c /etc/awstats/.htpasswd username1
63
# htpasswd2 /etc/awstats/.htpasswd username2
64
# etc...
65
###
66
67
#<IfModule mod_auth.c>
68
#<Directory "/usr/share/webapps/awstats/PVR/hostroot">
69
#    Options None
70
#    AllowOverride None
71
#    Order allow,deny
72
#    Allow from all
73
#
74
#    AuthType Basic
75
#    AuthName "AWStats authenticated zone"
76
#    AuthUserFile /etc/awstats/.htpasswd
77
#    Require valid-user
78
#
79
#</Directory>
80
#</IfModule>
81
82
###
83
# SECTION II - Digest Authentication
84
#
85
# The following example requires mod_auth_digest to work.
86
# You need to uncomment the following line in apache2.conf
87
# and restart Apache to get the module loaded:
88
#
89
# LoadModule auth_digest_module            modules/mod_auth_digest.so
90
#
91
# Do not forget to replace www.example.com as appropriate. You can also add
92
# as many domains as you need to this line.
93
#
94
# Add your AWStats users to /etc/awstats/.htdigest file. Please see 
95
# 'man htdigest2' and http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html
96
# for more details if you need.
97
#
98
# htdigest2 -c /etc/awstats/.htdigest "AWStats authenticated zone" username1
99
# htdigest2 /etc/awstats/.htdigest "AWStats authenticated zone" username2
100
# etc...
101
###
102
103
#<IfModule mod_auth_digest.c>
104
#<Directory "/usr/share/webapps/awstats/PVR/hostroot">
105
#    Options None
106
#    AllowOverride None
107
#    Order allow,deny
108
#    Allow from all
109
110
#    AuthType Digest
111
#    AuthName "AWStats authenticated zone"
112
#    AuthDigestFile /etc/awstats/.htdigest
113
#    AuthDigestDomain http://www.example.com https://www.example.com
114
#    require valid-user
115
#    # The following line is REQUIRED to work around a bug in MSIE.
116
#    # See http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html
117
#    BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On
118
#</Directory>
119
#</IfModule>
120
121
###
122
# SECTION III - MySQL Authentication
123
#
124
# The following example requires mod_auth_mysql to work.
125
# Emerge mod_auth_mysql and follow the instructions in
126
# 12_mod_auth_mysql.conf to create MySQL database required
127
# for authentication. After you finished adding users, add
128
# '-D AUTH_MYSQL' to your /etc/conf.d/apache2 APACHE2_OPTS
129
# setting and restart Apache to get the module loaded.
130
###
131
132
#<IfModule mod_auth_mysql.c>
133
#<Directory "/usr/share/webapps/awstats/PVR/hostroot">
134
#    Options None
135
#    AllowOverride None
136
#    Order allow,deny
137
#    Allow from all
138
139
#    AuthName "AWStats MySQL authenticated zone"
140
#    AuthType Basic
141
#    AuthMySQLUser authuser
142
#    AuthMySQLPassword PaSsW0Rd
143
#    AuthMySQLDB auth
144
#    AuthMySQLUserTable users
145
#    AuthMySQLNameField user_name
146
#    AuthMySQLPasswordField user_passwd
147
#    # Uncomment the two lines below ONLY if you have
148
#    # the required table for group-based MySQL authentication
149
#    # in your MySQL database.
150
#    #AuthMySQLGroupTable groups
151
#    #AuthMySQLGroupField user_group
152
#
153
#    # Uncomment one of the following directives according
154
#    # to the database structure you have chosen.
155
#    #require valid-user
156
#    #require group your_group_name_here
157
158
#</Directory>
159
#</IfModule>

Return to bug 81978