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.
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
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:
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.
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:
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.
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