ScriptAlias issue

Forum for questions and support relating to 1.33.x development only.
Locked
phoner
Posts: 13
Joined: Fri Nov 15, 2019 4:00 pm

ScriptAlias issue

Post by phoner »

On centos7, version 1.33.14, found an issue with the ScriptAlias, the zoneminder.conf file has
ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"

however the browser actually attemps to use path /cgi-bin/zm

had to change this to ScriptAlias /cgi-bin/zm "/usr/libexec/zoneminder/cgi-bin"

however then apache didn't seem to apply this until the ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" line was commented out of httpd.conf
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: ScriptAlias issue

Post by knight-of-ni »

phoner wrote: Sun Nov 24, 2019 6:08 am On centos7, version 1.33.14, found an issue with the ScriptAlias, the zoneminder.conf file has
ScriptAlias /cgi-bin-zm "/usr/libexec/zoneminder/cgi-bin"

however the browser actually attemps to use path /cgi-bin/zm

had to change this to ScriptAlias /cgi-bin/zm "/usr/libexec/zoneminder/cgi-bin"

however then apache didn't seem to apply this until the ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" line was commented out of httpd.conf
The ScriptAlias is correct. It should be /cgi-bin-zm ....it avoids the problem stated in the second part of your message. This only affects distros that use the stock httpd.conf file, such as Redhat distros. Debian distros are unaffected because they ship with their own httpd.conf called apache2.conf. I'm mentioning this for any Debian/Ubuntu users who happen to read this thread.

After you put the ScriptAlias back, if this isn't a zm config or browser caching issue, then it could be "/cgi-bin/zm" got hard coded in a recent php commit. This has happened before. Try to ping iconnor to see if he made any changes recently that might affect this.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked