View Full Version : visible stats without loggin in
acts837
10-27-2004, 05:50 AM
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.
Hunter
10-27-2004, 06:56 AM
Hello
You have to login to server via SSH and:
cd /home/username/domains/domain.com/public_html
ln -s ../stats
Then statistics will be available here: http://www.domain.com/stats
acts837
10-27-2004, 07:00 AM
I'd have to do that for all accounts? Can I make a global change that effects all domains?
Thanks for the reponse!
l0rdphi1
10-27-2004, 07:20 AM
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:
Alias /stats /home/|USER|/domains/|DOMAIN|/stats/
Note 1: To rewrite your httpd files, you must run, as root:
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.
acts837
10-27-2004, 07:22 AM
that's the ticket! I appreciate both of your help.
l0rdphi1
10-27-2004, 07:25 AM
I edited my post for clarity. :)
Thank you!
Phi1.
acts837
10-27-2004, 08:21 AM
I placed it under |CUSTOM|
Does it matter where I put that line?
philmcdonnell
12-14-2004, 02:38 PM
Originally posted by l0rdphi1
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:
Alias /stats /home/|USER|/domains/|DOMAIN|/stats/
Note 1: To rewrite your httpd files, you must run, as root:
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
jmstacey
12-14-2004, 05:46 PM
http://help.directadmin.com/item.php?id=2
You will know if it works if you can access the statistics on any domain on youer server by adding /stats to the end of the domain;)
philmcdonnell
12-14-2004, 09:11 PM
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
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.