Grant access to the new cache directory in Apache on Ubuntu (#2130)
This fixes a regression from #2083 and aligns with generate_apache_config.pl and the changes for Debian
This commit is contained in:
parent
09aa3afaac
commit
50f81c50b2
|
@ -9,7 +9,17 @@ ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
|
||||||
# Order matters. This Alias must come first
|
# Order matters. This Alias must come first
|
||||||
Alias /zm/cache /var/cache/zoneminder/cache
|
Alias /zm/cache /var/cache/zoneminder/cache
|
||||||
<Directory /var/cache/zoneminder/cache>
|
<Directory /var/cache/zoneminder/cache>
|
||||||
Options -Indexes +FollowSymLinks
|
Options -Indexes +FollowSymLinks
|
||||||
|
AllowOverride None
|
||||||
|
<IfModule mod_authz_core.c>
|
||||||
|
# Apache 2.4
|
||||||
|
Require all granted
|
||||||
|
</IfModule>
|
||||||
|
<IfModule !mod_authz_core.c>
|
||||||
|
# Apache 2.2
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
</IfModule>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
Alias /zm /usr/share/zoneminder/www
|
Alias /zm /usr/share/zoneminder/www
|
||||||
|
@ -45,4 +55,3 @@ Alias /zm /usr/share/zoneminder/www
|
||||||
RewriteRule ^ index.php [L]
|
RewriteRule ^ index.php [L]
|
||||||
RewriteBase /zm/api
|
RewriteBase /zm/api
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,17 @@ ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
|
||||||
# Order matters. This alias must come first.
|
# Order matters. This alias must come first.
|
||||||
Alias /zm/cache /var/cache/zoneminder/cache
|
Alias /zm/cache /var/cache/zoneminder/cache
|
||||||
<Directory /var/cache/zoneminder/cache>
|
<Directory /var/cache/zoneminder/cache>
|
||||||
Options -Indexes +FollowSymLinks
|
Options -Indexes +FollowSymLinks
|
||||||
|
AllowOverride None
|
||||||
|
<IfModule mod_authz_core.c>
|
||||||
|
# Apache 2.4
|
||||||
|
Require all granted
|
||||||
|
</IfModule>
|
||||||
|
<IfModule !mod_authz_core.c>
|
||||||
|
# Apache 2.2
|
||||||
|
Order deny,allow
|
||||||
|
Allow from all
|
||||||
|
</IfModule>
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
Alias /zm /usr/share/zoneminder/www
|
Alias /zm /usr/share/zoneminder/www
|
||||||
|
|
Loading…
Reference in New Issue