
Alias /zm "/usr/share/zoneminder/www"
<Directory "/usr/share/zoneminder/www">
    Options -Indexes -MultiViews -FollowSymLinks
    #AddType application/x-httpd-php .php
    <FilesMatch .php>
        SetHandler "proxy:unix:/var/run/php-fpm/php74.sock|fcgi://localhost"
    </FilesMatch>
    AllowOverride All
    Order allow,deny
    Allow from all
    AuthName "Zoneminder"
    AuthType Basic
    AuthBasicProvider external
    AuthExternal pwauth
    require user admin
</Directory>

<Directory "/usr/libexec/zoneminder/cgi-bin">
    AllowOverride All
    Options ExecCGI FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>
