visible stats without loggin in

acts837

Verified User
Joined
Aug 16, 2004
Messages
25
Location
Auburn, AL
I want to provide a client of mine with the ability to see stats like you get in the DA control panel without him having to log in. What would be the best solution? I thought at one time we could use www.domain.com/stats or something like that.
 
I'd have to do that for all accounts? Can I make a global change that effects all domains?

Thanks for the reponse!
 
Hello,

Alternatively, go to the 'Custom Httpd Configurations' option (or to make this a global change: edit your /usr/local/directadmin/data/templates/virtual_host*.conf template and rewrite your httpd files) and add the following line:
Code:
Alias /stats /home/|USER|/domains/|DOMAIN|/stats/
Note 1: To rewrite your httpd files, you must run, as root:
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
Note 2: After editing any templates in /usr/local/directadmin/data/templates/, make sure you move them to /usr/local/directadmin/data/templates/custom/ or else DA will overwrite your changes when it next updates. :)

Good luck.

Phi1.
 
Last edited:
l0rdphi1 said:
Hello,

Alternatively, go to the 'Custom Httpd Configurations' option (or to make this a global change: edit your /usr/local/directadmin/data/templates/virtual_host*.conf template and rewrite your httpd files) and add the following line:
Code:
Alias /stats /home/|USER|/domains/|DOMAIN|/stats/
Note 1: To rewrite your httpd files, you must run, as root:
Code:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue
Note 2: After editing any templates in /usr/local/directadmin/data/templates/, make sure you move them to /usr/local/directadmin/data/templates/custom/ or else DA will overwrite your changes when it next updates. :)

First is it the virtual_host.conf file? what is the * for???

Second how will I know if it works?

Thanks,
Phil
 
Thanks, I did get it to work after all.

Is there anyway to password protect that directory? Can I do it through the control panel?

Thanks,
Phil
 
Back
Top