diff --git a/distros/redhat/nginx/zoneminder.nginx.conf.in b/distros/redhat/nginx/zoneminder.nginx.conf.in index c2e3edee7..2976a83b2 100644 --- a/distros/redhat/nginx/zoneminder.nginx.conf.in +++ b/distros/redhat/nginx/zoneminder.nginx.conf.in @@ -21,7 +21,7 @@ server { include /etc/nginx/fastcgi_params; fastcgi_param SCRIPT_FILENAME $request_filename; - fastcgi_pass unix:/run/fcgiwrap.sock; + fastcgi_pass unix:/run/fcgiwrap/fcgiwrap-nginx.sock; } location /zm/cache { diff --git a/distros/redhat/readme/README.httpd b/distros/redhat/readme/README.httpd index cb5805b18..5301850df 100644 --- a/distros/redhat/readme/README.httpd +++ b/distros/redhat/readme/README.httpd @@ -146,13 +146,8 @@ Upgrades See step 6 of the installation section if you have not already done this during a previous upgrade. -<<<<<<< HEAD - If this step is not performed correctly, the web console will appear - mostly empty and/or significantly corrupted post-upgrade. -======= IMPORTANT: Failure to complete this step properly will result in a mostly empty or significantly corrupted web console post-upgrade. ->>>>>>> 5b211d250910918782d20bf32b0e33a38a0df4dd 4. Upgrade the database before starting ZoneMinder. diff --git a/web/api/app/Controller/HostController.php b/web/api/app/Controller/HostController.php index d4e19fd77..ce101c73d 100644 --- a/web/api/app/Controller/HostController.php +++ b/web/api/app/Controller/HostController.php @@ -71,7 +71,8 @@ class HostController extends AppController { $zmAuthRelay = $this->Config->find('first',array('conditions' => array('Config.' . $this->Config->primaryKey => 'ZM_AUTH_RELAY')))['Config']['Value']; if ( $zmAuthRelay == 'hashed' ) { $zmAuthHashIps = $this->Config->find('first',array('conditions' => array('Config.' . $this->Config->primaryKey => 'ZM_AUTH_HASH_IPS')))['Config']['Value']; - $credentials = 'auth='.generateAuthHash($zmAuthHashIps); + // make sure auth is regenerated each time we call this API + $credentials = 'auth='.generateAuthHash($zmAuthHashIps,true); } else { // user will need to append the store password here $credentials = 'user='.$this->Session->read('user.Username').'&pass=';