Zoneminder master 1.37.15 + GeoIP access

Current Development version likely to have breaking changes
Post Reply
SashkaDotCom
Posts: 6
Joined: Mon Apr 11, 2022 9:30 pm

Zoneminder master 1.37.15 + GeoIP access

Post by SashkaDotCom »

Hi, guys.

file config zm: /etc/apache2/conf-enabled/zoneminder.conf

Code: Select all

Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
  Options -Indexes +FollowSymLinks
<IfModule mod_authz_core.c>
       # Apache 2.4
       Require all granted
    </IfModule>
<IfModule mod_dir.c>
    DirectoryIndex index.php
  </IfModule>
<IfModule mod_geoip.c>
    GeoIPEnable On
</IfModule>
</Directory>
.htaccess file

Code: Select all

GeoIPEnable On
    GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
    GeoIPDBFile /usr/share/GeoIP/GeoIPv6.dat
    SetEnvIf GEOIP_COUNTRY_CODE AU AllowCountry
<RequireAny>
  <RequireAll>
    Require all denied
    Require env AllowCountry
    Require all granted
  </RequireAll>
</RequireAny>
error apache log - GeoIPDBFile not allowed here

pls help me :roll:
Post Reply