File smokeping.conf of Package smokeping

<IfDefine SMOKEPING>
    # please read how to enable smokeping be a lot faster in
    # /usr/share/doc/packages/smokeping/README.SUSE
    Alias /smokeping/cache /var/lib/smokeping/cache
    <IfModule mod_fastcgi.c>
        <Location /cgi-bin/smokeping>
            SetHandler fastcgi-script
            <IfModule mod_authz_core.c>
                # Apache 2.4
                Require all granted
            </IfModule>
            <IfModule !mod_authz_core.c>
                Order deny,allow
                Allow from all
            </IfModule>
        </Location>
    </IfModule>
    <Directory /var/lib/smokeping/cache>
    Options None
    AllowOverride None
    <IfModule mod_authz_core.c>
        # Apache 2.4
        Require ip 127.0.0.1
        Require ip 192.168.0.0/16
        Require ip 10.0.0.0/8
        Require ip ::1
    </IfModule>
    <IfModule !mod_authz_core.c>
        # Apache 2.2
        Order allow,deny
        Allow from 127.0.0.1
        Allow from 192.168.0.0/16
        Allow from 10.0.0.0/8
    </IfModule>
    </Directory>
</IfDefine>

# this code will forbid access to frontend
# no need to remove it in case when system is not configured correctly
<IfDefine !SMOKEPING>
    Redirect 403 /cgi-bin/smokeping
</IfDefine>
openSUSE Build Service is sponsored by