[ubuntu] Zoneminder upgrade – 1.26 to 1.32

Thanks! as it turns out, I did indeed install 16.04 of ubuntu … however, I ended up right back where I was. I actually ended up removing ZM and totally reinstalling (dropping the database etc). As it turns out, the whole problem was the typical path issue. Unfortunately, EVERY REFERENCE I COULD FIND re: how to ensure that the script alias and PATH_ZMS variable was set correctly, referred to a console OPTIONS ==> PATH setting that is NO LONGER present on 1.32 of ZM. which brings up a curious problem as to how to ensure folks new to this level of support can possibly find the correct answers online without having to actually make a post. When the actual functionality of the product changes like this, and the old docs are still readily accessible.. it makes it difficult to keep from pulling out your hair. I was unable to figure this out until I actually SEARCHED GOOGLE for “ZONEMINDER MISSING PATH_ZMS” at which point, i found the handy site that explained as how these path variables are now in zmcustom.conf as noted here (if this is allowed https://forums.zoneminder.com/viewto…=27722#p108059

Once I realized that the path variables are now in zmcustom.conf in /etc/zm/conf.d the world was a much better place, and immediately the camera i had defined started working. I simply had to insert “/zm” in front of the default setting there. Getting a few other cameras to work was very difficult due to odd FOSCAM HD camera settings, but I finally got there. We’re back in business – though i do have to re map my zone on the motion detection camera.

Source: [ubuntu] Zoneminder upgrade – 1.26 to 1.32

Leon Max Lederman

Leon Max Lederman (July 15, 1922 – October 3, 2018) was an American experimental physicist who received the Nobel Prize in Physics in 1988, along with Melvin Schwartz and Jack Steinberger, for research on neutrinos. He also received the Wolf Prize in Physics in 1982, along with Martin Lewis Perl, for research on quarks and leptons. Lederman was director emeritus of Fermi National Accelerator Laboratory (Fermilab) in Batavia, Illinois. He founded the Illinois Mathematics and Science Academy, in Aurora, Illinois in 1986, where he was Resident Scholar Emeritus from 2012 until his death in 2018.[2][3]

An accomplished scientific writer, he became known for his 1993 book The God Particle establishing the popularity of the term for the Higgs boson.

proxypass – Redirect domain.com/path to another Apache Server – Stack Overflow

Viewed 3k times

0

1

I have 3 Apache VM’s running currently:

A) ProxyPass (Hosts Nothing)
B) Main Website
C) ZoneMinder Website

If you access example.com you get to the website, and can navigate around, but…

If I manually type http://example.com/zm trying to access zoneminder

It redirects http://example.com/zm in my remote browser to http://192.168.1.255:443/foo*

I can’t seem to get my redirect working correctly, can anybody see what I am doing wrong?

Configs:

A) ProxyPass Server:

<VirtualHost *:80>
    ServerName          www.example.com
    RedirectPermanent / http://example.com
</VirtualHost>

<VirtualHost *:80>
ServerName example.com
ProxyRequests Off
<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>

ProxyPass / http://192.168.1.255:80/
ProxyPassReverse / http://192.168.1.255:80/
<Location />
    Order allow,deny
    Allow from all
</Location>
</VirtualHost>

B) Main Website

<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/html
LogLevel warn
ErrorLog ${APACHE_LOG_DIR}/example.log
CustomLog ${APACHE_LOG_DIR}/example-access.log combined
</VirtualHost>

0

Got it working!

The setup:

Server A) Apache server that only serves proxypass and doesn’t host anything

Server B) Apache server that hosts main domain.com

Server C) Apache server that hosts ZoneMinder @ domain.com/zm

Server A Config:

<VirtualHost *:80>
ServerName domain.com
Redirect / https://www.domain.com/
</VirtualHost>

<VirtualHost *:443>
ServerName www.domain.com
ProxyRequests Off
<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>
SSLProxyEngine On
SSLProxyCheckPeerCN on
SSLProxyCheckPeerExpire on
SSLEngine on
SSLCertificateFile /location of .crt
SSLCertificateKeyFile /location of .key
SSLCACertificateFile /location of .crt
ProxyPreserveHost on

ProxyPass /zm https://192.168.1.43:443/zm
ProxyPassReverse /zm https://192.168.1.43:443/zm


ProxyPass / https://192.168.1.42:443/
ProxyPassReverse / https://192.168.1.42:443/

<Location />
    Order allow,deny
    Allow from all
</Location>
</VirtualHost>

Notes: It is important to have the /zm come before the “/” catch all. I also noticed it FAILED if i used /zm/.

 

Source: proxypass – Redirect domain.com/path to another Apache Server – Stack Overflow