I seem to have mine located in
Code: Select all
ls -lah /etc/apache2/conf-enabled
lrwxrwxrwx 1 root root 30 Jul 30 13:56 charset.conf -> ../conf-available/charset.conf
lrwxrwxrwx 1 root root 44 Jul 30 13:56 localized-error-pages.conf -> ../conf-available/localized-error-pages.conf
lrwxrwxrwx 1 root root 46 Jul 30 13:56 other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf
lrwxrwxrwx 1 root root 31 Jul 30 13:56 security.conf -> ../conf-available/security.conf
lrwxrwxrwx 1 root root 36 Jul 30 13:56 serve-cgi-bin.conf -> ../conf-available/serve-cgi-bin.conf
lrwxrwxrwx 1 root root 33 Jul 30 14:13 zoneminder.conf -> ../conf-available/zoneminder.conf
-rw-r--r-- 1 root root 858 Jul 30 14:24 zoneminder.sav
And the zoneminder.conf looks like this
Code: Select all
########################
#
# Remember to enable cgi mod and serve-cgi-bin.conf configuration
#
# a2enmod cgi
# a2enconf serve-cgi-bin.conf
#
########################
# Order matters. This alias must come first.
Alias /zm/cache /var/cache/zoneminder
<Directory /var/cache/zoneminder>
Options -Indexes +FollowSymLinks
AllowOverride None
Require all granted
</Directory>
Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
# php_flag register_globals off
Options -Indexes +FollowSymLinks
<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</Directory>
ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
<Directory "/usr/share/zoneminder/www/api">
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
RewriteBase /zm/api
</Directory>
<Directory "/usr/share/zoneminder/www/api/app">
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
RewriteBase /zm/api
</Directory>
<Directory "/usr/share/zoneminder/www/api/app/webroot">
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
RewriteBase /zm/api
</Directory>
Is this as it should be ?
I followed a tutorial that told to change that specific file.
I luckely enough saved the old file as zoneminder.sav and that one looks like
Code: Select all
# Remember to enable cgi mod (i.e. "a2enmod cgi").
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>
# Order matters. This alias must come first.
Alias /zm/cache "/var/cache/zoneminder"
<Directory "/var/cache/zoneminder">
Options -Indexes +FollowSymLinks
AllowOverride None
<IfModule mod_authz_core.c>
# Apache 2.4
Require all granted
</IfModule>
</Directory>
Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
Options -Indexes +FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
<Directory /usr/share/zoneminder/www/api>
AllowOverride All
</Directory>
The cgi-part seems to be the same except in
Code: Select all
zoneminder.conf
ScriptAlias /cgi-bin "/usr/lib/zoneminder/cgi-bin"
and
Code: Select all
zoneminder.sav
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
I partly followed a Raspbian Zoneminder tutorial and the wiki
https://wiki.zoneminder.com/Debian_10_B ... e_Easy_Way
If i add to zoneminder.conf
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
instead i get
The requested URL /cgi-bin was not found on this server.