# pkgsrc Apache configuration for zoneminder, intended to be copied to # ${PKG_SYSCONFDIR}/httpd and then included via # Include etc/httpd/httpd-zoneminder.conf # This configuration puts ZoneMinder under /zm. Access is limited to # localhost, as a safe default until intentionally changed. LoadModule cgid_module lib/httpd/mod_cgid.so # \todo Consider fcgi intead. # # # Options -Indexes +ExecCGI # AllowOverride All # AddHandler fcgid-script .php # FCGIWrapper /usr/bin/php5-cgi # Order allow,deny # Allow from all # # LoadModule php7_module lib/httpd/mod_php7.so SetHandler application/x-httpd-php # Upstream had # # # Options -Indexes +FollowSymLinks # # DirectoryIndex index.php # # # ScriptAlias /zm/cgi-bin/ "@ZM_HTTPD_CGIBIN@/" Require ip 127.0.0.1 Require ip :: Alias /zm/cache "/var/cache/zoneminder" Require ip 127.0.0.1 Require ip :: Alias /zm/events "/var/db/zoneminder/events" Alias /zm/images "/var/db/zoneminder/images" Require ip 127.0.0.1 Require ip :: # \todo Upstream sets Options. Alias /zm "@ZM_HTTPD_ROOT@" DirectoryIndex index.php Require ip 127.0.0.1 Require ip ::