making stats available outside control panel

Tijs

New member
Joined
Jul 7, 2004
Messages
4
Hi there,

Does anybody know if it's possible to make the webalizer stats collected available outside of the control panel. i.e. making them avaiable in a form similar to:

http://www.domain.com/webstat/

I do not want to make all control panel options available to all domain users, but do want to offer some access to the stats....

any suggestions?

Regards,
Tijs
 
Thanks Jeff. Works like a charm. Now why didn't i think of that ;)

Tijs
 
howto part 2?

Which brings me to another problem... How would i password protect this dir without stopping webalizer from writing it's logs?
 
I believe you can just use a .htaccess file since it is only a symbolic link to the real stats directory.
 
thanks stacey. since i can't place the .htaccess in the stats dir i made a dir webstat/ that contains the .htaccess, a symbolic link to stats and a redirect that redirects to webstat/stats/

not very pretty but it works :)
 
That's the only I can think of doing it. If you post the contents of your .htaccess file (not the contents of .htpasswd) I'll amend my How-To.

Jeff
 
Last edited:
I think you could protect it through the httpd.conf file.

Some other ideas I haven't tried yet.

1. Could you really create the stats directory, put the .htaccess file in it and in the .htaccess file put the symbolic link or redirect? That way you could also easily integrate username and password requirments.

2. Is it possible to have a .htaccess file outside a directory or symbolic link and protect it that way? Like doing it through the httpd file only instead using .htaccess to overide the default allow for that directory?

Example:
htacces is in /directory/.htaccess
and it protects /directory/stats
without actually having to be in the stats directory.
 
Back
Top