Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 51195 Details for
Bug 81978
[ENH] - patch to net-www/awstats postinst-en.txt - authentication and a minor tweaks
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Some enhancements for Apache awstats configuration
postinst-en.txt.diff (text/plain), 4.77 KB, created by
Jakub Moc (RETIRED)
on 2005-02-14 04:37:32 UTC
(
hide
)
Description:
Some enhancements for Apache awstats configuration
Filename:
MIME Type:
Creator:
Jakub Moc (RETIRED)
Created:
2005-02-14 04:37:32 UTC
Size:
4.77 KB
patch
obsolete
>--- postinst-en.txt.orig 2005-02-13 03:14:13.000000000 +0100 >+++ postinst-en.txt 2005-02-14 13:28:12.767015505 +0100 >@@ -2,6 +2,8 @@ > Alias /awstats/css "/usr/share/webapps/awstats/PVR/htdocs/css/" > Alias /awstats/icons "/usr/share/webapps/awstats/PVR/htdocs/icon/" > ScriptAlias /awstats/ "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin/" >+ScriptAlias /awstats "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin/awstats.pl" >+ScriptAlias /awstats.pl "/usr/share/webapps/awstats/PVR/hostroot/cgi-bin/awstats.pl" > > <Directory "/usr/share/webapps/awstats/PVR/htdocs"> > Options None >@@ -20,3 +22,132 @@ > Allow from all > </IfModule> > </Directory> >+ >+### >+# NOTE: The following sections are strictly optional. Please read >+# and follow carefully all the instructions before uncommenting >+# any lines. Examples shown below are for Apache 2.0.x ONLY. >+### >+ >+### >+# INSTRUCTIONS: >+# >+# If you would like to require authentication to access AWStats, >+# then uncomment ONE of the example Directory sections below. >+# >+# 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 to work. >+# You need to uncomment the following line in apache2.conf >+# and restart Apache to get the module loaded: >+# >+# LoadModule auth_module modules/mod_auth.so >+# >+# 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... >+### >+ >+#<Directory "/usr/share/webapps/awstats/PVR/hostroot"> >+# Options None >+# AllowOverride None >+# Order allow,deny >+# Allow from all >+# >+# AuthType Basic >+# AuthName "AWStats authenticated zone" >+# AuthUserFile /etc/awstats/.htpasswd >+# Require valid-user >+# >+#</Directory> >+ >+### >+# SECTION II - Digest Authentication >+# >+# The following example requires mod_auth_digest to work. >+# You need to uncomment the following line in apache2.conf >+# and restart Apache to get the module loaded: >+# >+# LoadModule auth_digest_module modules/mod_auth_digest.so >+# >+# 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... >+### >+ >+#<Directory "/usr/share/webapps/awstats/PVR/hostroot"> >+# Options None >+# AllowOverride None >+# Order allow,deny >+# Allow from all >+ >+# 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> >+ >+### >+# SECTION III - MySQL Authentication >+# >+# The following example requires mod_auth_mysql to work. >+# Emerge mod_auth_mysql and follow the instructions in >+# 12_mod_auth_mysql.conf to create MySQL database required >+# for authentication. After you finished adding users, add >+# '-D AUTH_MYSQL' to your /etc/conf.d/apache2 APACHE2_OPTS >+# setting and restart Apache to get the module loaded. >+### >+ >+#<Directory "/usr/share/webapps/awstats/PVR/hostroot"> >+# Options None >+# AllowOverride None >+# Order allow,deny >+# Allow from all >+ >+# AuthName "AWStats MySQL authenticated zone" >+# AuthType Basic >+# AuthMySQLUser authuser >+# AuthMySQLPassword PaSsW0Rd >+# AuthMySQLDB auth >+# AuthMySQLUserTable users >+# AuthMySQLNameField user_name >+# AuthMySQLPasswordField user_passwd >+# # Uncomment the two lines below ONLY if you have >+# # the required table for group-based MySQL authentication >+# # in your MySQL database. >+# #AuthMySQLGroupTable groups >+# #AuthMySQLGroupField user_group >+# >+# # Uncomment one of the following directives according >+# # to the database structure you have chosen. >+# #require valid-user >+# #require group your_group_name_here >+# >+#</Directory>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 81978
:
51195
|
51504
|
51507