Current User: Guest Login Register
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Minimum search word length is 3 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Securing AWSTATS

Reply to Post Add a New Topic
UserPost

2:31 pm
September 13, 2010


paulvz

Member

posts 4

I get this error when i change the access for awstats.

Error: Access to statistics is only allowed
from an authenticated session to authenticated users.
Setup ('/etc/awstats/awstats.www.etracc.net.conf' file, web server orpermissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

In /etc/awstats I change the awstats.www.etracc.net.conf

To the following

AllowAccessFromWebToAuthenticatedUsersOnly=1

and the second to -

AllowAccessFromWebToFollowingAuthenticatedUsers="CCI"
 

I go to the “/var/www/etracc.net/cgi-bin/ “ directory and
create the user

$ htpasswd -c .htpasswd CCI

I then change the 
.htaccess file to

AuthUserFile /var/www/etracc.net/cgi-bin/.htpasswd
AuthGroupFile /dev/null
AuthName "Enter Username"
AuthType Basic

require valid-user

What am i doing wrong?

4:58 pm
September 13, 2010


Jean-Luc

Admin

posts 1063

Hello,

Please close all windows of the browser and try again. Do you have to enter your user name and password when you try to connect after restarting the browser ? Do you still get the AWStats error message as above ?

7:14 am
September 14, 2010


paulvz

Member

posts 4

Hi
 

I did that

 and still the same.

 

Any other ideas?

 

even changed it a little to

 

# .htaccess for cgi-bin

AuthType Basic
AuthName "stats"
AuthUserFile /var/www/etracc.net/cgi-bin/.htusers
Require user CCI    

 

# Userfile for cgi-bin
CCI:$1$aGJvMbPz$ndRHpqF/NW.bqSfWH0Dzu/

7:51 am
September 14, 2010


Jean-Luc

Admin

posts 1063

You did not answer my first question:

Do you have to enter your user name and password when you try to connect after restarting the browser ?

8:13 am
September 14, 2010


paulvz

Member

posts 4

AAAAHHH

 

Sorry

 

No – it goes straight to that error

 

Regards

 

Paul

8:35 am
September 14, 2010


Jean-Luc

Admin

posts 1063

So it is not an AWStats problem. The problem is with your .htaccess file.

Here is the one I use:

AuthName "PRIVATE"
AuthUserFile /full_path_to/.htusers
AuthGroupFile /dev/null
AuthType Basic
Require valid-user

 

It works fine. I suggest you try it in your system.

Note that the full path to the user/password file (.htusers) must be specified. You cannot use any kind of relative path in AuthUserFile.

8:49 am
September 14, 2010


paulvz

Member

posts 4

is this a full path?  /var/www/etracc.net/cgi-bin/.htusers

regards

9:02 am
September 14, 2010


Jean-Luc

Admin

posts 1063

Paul,

I am not sure. From the command line (ssh), go in the directory where .htusers is located and type pwd. You will see the full path.

Reply to Post

Reply to Topic:
Securing AWSTATS

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
9 + 6
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 201

Currently Online:
14 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 513
Posts: 2447

Membership:

There are 4127 Members
There have been 254 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
albert_newton – 30
deepakgupta – 28
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: eniko, leptserkhan, JohnnyB, dweb3d, buck, newtoawstat

Administrators: Jean-Luc (1063 Posts)

Moderators: Jean-Luc (1063 Posts)