Hi there, I have been trying for over 2 hours to restrain access to AWSTATS to only LAN IP address... but it did not work. I tried the following: etc/httpd/conf/httpd.conf <Directory "/usr/share/awstats/wwwroot"> Options None AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.1 192.168.1.100 Same thing for the file etc/httpd/conf.d/awstats.conf Even added this line in my awstats.mywebsite.com.conf AllowAccessFromWebToFollowingIPAddresses="127.0.0.1 192.168.1.00" Nothing is working for me... Still have access from the WEB (after entering the login/password I created from ISP Config Statistics Tab). What Am I missing!? Thanks!
The website statistics are not located in /usr/share/awstats/wwwroot, they are in the folder web/stats of each website. If you want to restrict access by IP, add it in the htaccess file in the stats folder.
Thanks for the reply Till... I am a Network Admin, now learning the Hosting/Unix/ISPConfig way so I apologize in advance if y question(s) is/are basics ... I don't have an htaccess file in the stats... Do I create one? If yes, what do I put in it exactly? Regarding these other files, since the stats are not in /usr/share/awstats/wwwroot I suppose that what I did has no impact right? Dom
Yes, you just create one. What to put it in depends on what web server you're using (apache or nginx), and then the specific directory path to the website in question, which you can lookup from cli by "ls -l /var/www/domain.com" and see what the symlink target is (it will be /var/www/clients/client#/web#/), or in the ispconfig interface under Sites > domain > Domain (tab) > Document Root.