Apache basic authorizationYou can secure STOR2RRD web site easily by using Apache basic authorization.
It allows you create users with passwords which will have access to the STOR2RRD web.
There is a lot of manuals how to activate it on the Internet.
Note that since version 2.10 you can activate internal ACL authorization in the product itself.
Here is simple summary for Apache 1.x - 2.3: (all actions under root user):
Note: htpasswd might be in different locations like /opt/freeware/apache/bin/htpasswd or /opt/freeware/bin/htpasswd
# htpasswd -c /var/spool/htpass stor2rrd New password: Re-type new password: Adding password for user stor2rrd
Configure Apache httpd.conf.
You should already have the first directive in place if your STOR2RRD is already running, then just add the second directive (<Location /stor2rrd>)
Note: httpd.conf might be in different locations like /opt/freeware/etc/httpd/conf/httpd.conf or /etc/httpd/httpd.conf
# vi /etc/httpd/conf/httpd.conf Alias /stor2rrd/ "/home/stor2rrd/stor2rrd/www/" <Directory "/home/stor2rrd/stor2rrd/www/"> Options Indexes FollowSymLinks Includes MultiViews Order allow,deny Allow from all </Directory> <Location /stor2rrd> AuthType Basic AuthName "Protected Space" AuthUserFile /var/spool/htpass Require valid-user </Location>
Note: apachectl might be in different locations like /opt/freeware/sbin/apachectl
# apachectl restart
Check Apache error log. It is usually located somewhere in /var
# find /var -name error_log 2>/dev/null # tail error_log
- In case of a problem check our forum or contact us via email@example.com