Ok, so this installs the beautifull ZMNinja overlay WebUI. This is perfect for end users, and then Admin's can be only one's to access ZoneMinder Config UI.
Note: I don't think this is how the dev intended this to be run, everything works 100% but needs fine tuning. I followed this guide here. And tweaked to have Apache serve it!
To start:
sudo apt-get install -y git apache2-utils apache2 cd /var/www/ git clone https://github.com/pliablepixels/zmNinja.git sudo ln -s /var/www/zmNinja/www /var/www/html/zmNinja sudo rm /var/www/html/index.html sudo nano /etc/apache2/apache2.conf
I would recommend configure Fail2Ban to monitor Apache Auth via HTPasswd
/etc/apache2/apache2.conf
Options Indexes FollowSymLinks Includes ExecCGI AllowOverride AuthConfig AuthUserFile /etc/apache2/.htpasswd AuthName "Authorization Required" AuthType Basic require user
NOTE: -c falg after htpasswd creates new file, do not use if adding to .htpasswd as it will overwrite old file (AKA Clobber)
sudo htpasswd -c /etc/apache2/.htpasswd $USER sudo service apache2 restart
Now you can visit
http(s)://domain.com/zmninja #Profit!
Notes: The reason I say this isn't the intended way is because without the htpasswd zmNinja will just log in and remember authorization like the desktop and mobile apps. This is bad news bears when it comes to internet accessible domains! Hence the htpasswd.
Bonus : Forward root of domain to /
zmNinja
if desired
sudo sh -c 'echo "RedirectMatch ^/$ /zmNinja/" >> /etc/apache2/apache2.conf' && sudo service apache2 restart
1 Comment
Anonymous