If I edit my /etc/apache2/conf-available/zoneminder.conf so it looks like this:
Code: Select all
# Order matters. This alias must come first.
#Alias /zm/cache /var/cache/zoneminder/cache
Alias /zm/cache /usr/share/zoneminder/www/cache
#<Directory /var/cache/zoneminder/cache>
<Directory /usr/share/zoneminder/www/cache>
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>
#Alias /zm /usr/share/zoneminder/www
ScriptAlias /* /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
Options -Indexes +FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>
And edit my /etc/apache2/sites-available/000-default-le-ssl.conf so it looks like this ( I should probably state that I'm using multi-port as should be evident in the following):
Code: Select all
<IfModule mod_ssl.c>
<VirtualHost *:443 *:30001 *:30002 *:30003 *:30004 *:30005 *:30006 *:30007 *:30$
# The ServerName directive sets the request scheme, hostname and port t$
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
#DocumentRoot /var/www/html
DocumentRoot /usr/share/zoneminder/www
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
ServerName zm.mydomain.com
SSLCertificateFile /etc/letsencrypt/live/zm.mydomain.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/zm.mydomain.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
Then run
Code: Select all
ln -s /var/cache/zoneminder/cache /usr/share/zoneminder/www/cache
restart apache2 and clear the browser cache.
Thank kind of works. Everything except the playback of events seems to be working, but playing back events is important.
This is what I get when I try and play back an event:
- Untitled.jpeg (152.97 KiB) Viewed 8119 times
I got a similar playback error when I was trying to configure multi-port, so maybe this is something similar / related.