• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Permissions for webstats folder

M

minglis

Guest
How can I secure the webstats folder, generated by AWStats, so that it is not viewable by anonymous users?

Thanks,
Mike
 
modify
/etc/httpd/conf.d/awstats.conf
to include:

<Directory "/usr/share/awstats/wwwroot">

AuthType Basic
AuthName "Description Here"
AuthUserFile /etc/awstats/awstats.pwd
require valide-user
</Directory>

then create the file:
/ect/awstats/awstats.pwd

then run this:
#/usr/local/psa/admin/bin/htpasswd -bm /etc/awstats/awstats.pwd $username $password

(replace $username and $password with what you want for a login)

you'll have to run the last cmd each time you need to add user

-that should do it.
 
Back
Top