0bdd316
#
0bdd316
# apcupsd configuration file for Apache Web server
0bdd316
#
0bdd316
0bdd316
# files are off the documentroot of Web server
2228e70
Alias /apcupsd /var/www/apcupsd
2228e70
<Directory /var/www/apcupsd>
2228e70
 AddHandler cgi-script cgi pl
2228e70
 Options ExecCGI
2228e70
</Directory>
0bdd316
0bdd316
#
0bdd316
# Allow only local access at default
0bdd316
# Change the ".example.com" to match your domain or modify
0bdd316
# access rights to your needs to enable remote access also.
0bdd316
#
29cc871
<Directory "/var/www/apcupsd">
0bdd316
    DirectoryIndex upsstats.cgi
0bdd316
    AllowOverride None
29cc871
    Options ExecCGI Indexes
0bdd316
    Order deny,allow
0bdd316
    Deny from all
0bdd316
    Allow from 127.0.0.1
0bdd316
    Allow from ::1
0bdd316
    # Allow from .example.com
0bdd316
</Directory>