Lines 2-7
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" |
5 |
|
7 |
|
6 |
<Directory "/usr/share/webapps/awstats/PVR/htdocs"> |
8 |
<Directory "/usr/share/webapps/awstats/PVR/htdocs"> |
7 |
Options None |
9 |
Options None |
Lines 20-22
Link Here
|
20 |
Allow from all |
22 |
Allow from all |
21 |
</IfModule> |
23 |
</IfModule> |
22 |
</Directory> |
24 |
</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 |
#<Directory "/usr/share/webapps/awstats/PVR/hostroot"> |
68 |
# Options None |
69 |
# AllowOverride None |
70 |
# Order allow,deny |
71 |
# Allow from all |
72 |
# |
73 |
# AuthType Basic |
74 |
# AuthName "AWStats authenticated zone" |
75 |
# AuthUserFile /etc/awstats/.htpasswd |
76 |
# Require valid-user |
77 |
# |
78 |
#</Directory> |
79 |
|
80 |
### |
81 |
# SECTION II - Digest Authentication |
82 |
# |
83 |
# The following example requires mod_auth_digest to work. |
84 |
# You need to uncomment the following line in apache2.conf |
85 |
# and restart Apache to get the module loaded: |
86 |
# |
87 |
# LoadModule auth_digest_module modules/mod_auth_digest.so |
88 |
# |
89 |
# Do not forget to replace www.example.com as appropriate. You can also add |
90 |
# as many domains as you need to this line. |
91 |
# |
92 |
# Add your AWStats users to /etc/awstats/.htdigest file. Please see |
93 |
# 'man htdigest2' and http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html |
94 |
# for more details if you need. |
95 |
# |
96 |
# htdigest2 -c /etc/awstats/.htdigest "AWStats authenticated zone" username1 |
97 |
# htdigest2 /etc/awstats/.htdigest "AWStats authenticated zone" username2 |
98 |
# etc... |
99 |
### |
100 |
|
101 |
#<Directory "/usr/share/webapps/awstats/PVR/hostroot"> |
102 |
# Options None |
103 |
# AllowOverride None |
104 |
# Order allow,deny |
105 |
# Allow from all |
106 |
|
107 |
# AuthType Digest |
108 |
# AuthName "AWStats authenticated zone" |
109 |
# AuthDigestFile /etc/awstats/.htdigest |
110 |
# AuthDigestDomain http://www.example.com https://www.example.com |
111 |
# require valid-user |
112 |
# # The following line is REQUIRED to work around a bug in MSIE. |
113 |
# # See http://httpd.apache.org/docs-2.0/mod/mod_auth_digest.html |
114 |
# BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On |
115 |
#</Directory> |
116 |
|
117 |
### |
118 |
# SECTION III - MySQL Authentication |
119 |
# |
120 |
# The following example requires mod_auth_mysql to work. |
121 |
# Emerge mod_auth_mysql and follow the instructions in |
122 |
# 12_mod_auth_mysql.conf to create MySQL database required |
123 |
# for authentication. After you finished adding users, add |
124 |
# '-D AUTH_MYSQL' to your /etc/conf.d/apache2 APACHE2_OPTS |
125 |
# setting and restart Apache to get the module loaded. |
126 |
### |
127 |
|
128 |
#<Directory "/usr/share/webapps/awstats/PVR/hostroot"> |
129 |
# Options None |
130 |
# AllowOverride None |
131 |
# Order allow,deny |
132 |
# Allow from all |
133 |
|
134 |
# AuthName "AWStats MySQL authenticated zone" |
135 |
# AuthType Basic |
136 |
# AuthMySQLUser authuser |
137 |
# AuthMySQLPassword PaSsW0Rd |
138 |
# AuthMySQLDB auth |
139 |
# AuthMySQLUserTable users |
140 |
# AuthMySQLNameField user_name |
141 |
# AuthMySQLPasswordField user_passwd |
142 |
# # Uncomment the two lines below ONLY if you have |
143 |
# # the required table for group-based MySQL authentication |
144 |
# # in your MySQL database. |
145 |
# #AuthMySQLGroupTable groups |
146 |
# #AuthMySQLGroupField user_group |
147 |
# |
148 |
# # Uncomment one of the following directives according |
149 |
# # to the database structure you have chosen. |
150 |
# #require valid-user |
151 |
# #require group your_group_name_here |
152 |
# |
153 |
#</Directory> |