PDA

View Full Version : making stats available outside control panel



Tijs
07-07-2004, 02:00 AM
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

nobaloney
07-07-2004, 08:28 AM
I just posted a Mini How-To in the How-To section of the forums:

http://www.directadmin.com/forum/showthread.php?s=&threadid=3861

Jeff

Tijs
07-07-2004, 08:47 AM
Thanks Jeff. Works like a charm. Now why didn't i think of that ;)

Tijs

Tijs
07-07-2004, 09:23 AM
Which brings me to another problem... How would i password protect this dir without stopping webalizer from writing it's logs?

jmstacey
07-07-2004, 11:00 AM
I believe you can just use a .htaccess file since it is only a symbolic link to the real stats directory.

Tijs
07-08-2004, 06:43 AM
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 :)

nobaloney
07-08-2004, 10:22 AM
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

jmstacey
07-08-2004, 12:36 PM
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.