diff options
author | gdt <gdt@pkgsrc.org> | 2019-06-18 12:36:59 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2019-06-18 12:36:59 +0000 |
commit | eb49e0e9b82cc96b669377d147bcab65bef5befa (patch) | |
tree | 94559970aa1f3e4c30674c177be63c273bf2f481 /security/zoneminder | |
parent | b16c8e586e90b7c14ba2e13158306512ef661336 (diff) | |
download | pkgsrc-eb49e0e9b82cc96b669377d147bcab65bef5befa.tar.gz |
security/zoneminder: Update example apache config to 24
Diffstat (limited to 'security/zoneminder')
-rw-r--r-- | security/zoneminder/Makefile | 4 | ||||
-rw-r--r-- | security/zoneminder/files/zoneminder.conf | 12 |
2 files changed, 10 insertions, 6 deletions
diff --git a/security/zoneminder/Makefile b/security/zoneminder/Makefile index 60b04007ccb..d907904f928 100644 --- a/security/zoneminder/Makefile +++ b/security/zoneminder/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.41 2019/06/18 12:33:43 gdt Exp $ +# $NetBSD: Makefile,v 1.42 2019/06/18 12:36:59 gdt Exp $ PKGNAME= ${DISTNAME:S/ZoneMinder-/zoneminder-/} DISTNAME= ZoneMinder-1.28.1 -PKGREVISION= 19 +PKGREVISION= 20 CATEGORIES= security MASTER_SITES= ${MASTER_SITE_GITHUB:=ZoneMinder/} GITHUB_PROJECT= ZoneMinder diff --git a/security/zoneminder/files/zoneminder.conf b/security/zoneminder/files/zoneminder.conf index bd47180953a..cf900e8632c 100644 --- a/security/zoneminder/files/zoneminder.conf +++ b/security/zoneminder/files/zoneminder.conf @@ -1,10 +1,13 @@ # This Apache configuration puts ZoneMinder under /zm. +# Access is limited to localhost, as a safe default until +# intentionally changed. ScriptAlias /zm/cgi-bin/ "@ZM_HTTPD_CGIBIN@/" <Directory "@ZM_HTTPD_CGIBIN@"> - Order allow,deny - Allow from all + <RequireAny> + Require ip 127.0.0.1 + </RequireAny> </Directory> Alias /zm "@ZM_HTTPD_ROOT@" @@ -13,6 +16,7 @@ Alias /zm "@ZM_HTTPD_ROOT@" php_flag register_globals off php_flag short_open_tag on DirectoryIndex index.php - Order allow,deny - Allow from all + <RequireAny> + Require ip 127.0.0.1 + </RequireAny> </Directory> |