Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
192 - 1
#
2
# apcupsd configuration file for Apache Web server
3
#
4
 
5
# files are off the documentroot of Web server
6
Alias /apcupsd /var/www/apcupsd
7
<Directory /var/www/apcupsd>
8
 AddHandler cgi-script cgi pl
9
 Options ExecCGI
10
</Directory>
11
 
12
#
13
# Allow only local access at default
14
# Change the ".example.com" to match your domain or modify
15
# access rights to your needs to enable remote access also.
16
#
17
<Directory "/var/www/apcupsd">
18
    DirectoryIndex upsstats.cgi
19
    AllowOverride None
20
    Options ExecCGI Indexes
21
  <IfModule mod_authz_core.c>
22
    # Apache 2.4
23
    Require local
24
    Require ip 10.192.25
25
  </IfModule>
26
  <IfModule !mod_authz_core.c>
27
    # Apache 2.2
28
    Order deny,allow
29
    Deny from all
30
    Allow from 127.0.0.1
31
    Allow from ::1
32
    Allow from 10.192.25.0/24
33
  </IfModule>
34
</Directory>