Package: zoneminder
Version: 1.25.0-4
Severity: normal
I'm running ZM on standard port 80 internally but connecting through
a reverse proxy externally. The reverse proxy accepts connections on
a different port.
In this case zoneminder fails to display the video streams (monitor
window stays empty) due to hard coded URLs in the generated HTML.
This has been reported in the ZM support forum here:
http://www.zoneminder.com/forums/viewtopic.php?f=31&t=22427
which leads to the attached trivial patch. Please consider including this
patch in future releases.
Thanks and regards,
Bodo
-- System Information:
Debian Release: 7.7
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Versions of packages zoneminder depends on:
ii apache2 2.2.22-13+deb7u3
ii apache2-mpm-prefork [apache2] 2.2.22-13+deb7u3
ii ffmpeg 6:0.8.16-1
ii javascript-common 7
ii libapache2-mod-php5 5.4.35-0+deb7u2
pn libarchive-tar-perl <none>
ii libarchive-zip-perl 1.30-6
ii libavcodec53 6:0.8.16-1
ii libavdevice53 6:0.8.16-1
ii libavformat53 6:0.8.16-1
ii libavutil51 6:0.8.16-1
ii libbz2-1.0 1.0.6-4
ii libc6 2.13-38+deb7u6
ii libdate-manip-perl 6.32-1
ii libdevice-serialport-perl 1.04-2+b3
ii libgcc1 1:4.7.2-5
ii libgcrypt11 1.5.0-5+deb7u2
ii libgnutls-openssl27 2.12.20-8+deb7u2
ii libjpeg8 8d-1+deb7u1
ii libjs-mootools 1.4.5~debian1-2.1
ii libmime-lite-perl 3.028-1
ii libmime-tools-perl 5.503-1
ii libmysqlclient18 5.5.40-0+wheezy1
ii libpcre3 1:8.30-5
ii libphp-serialization-perl 0.34-1
ii libstdc++6 4.7.2-5
ii libswscale2 6:0.8.16-1
ii libsys-mmap-perl 0.16-1+b1
ii libwww-perl 6.04-1
ii mysql-client-5.5 [mysql-client] 5.5.40-0+wheezy1
ii mysql-server 5.5.40-0+wheezy1
ii perl 5.14.2-21+deb7u2
ii perl-modules [libmodule-load-perl] 5.14.2-21+deb7u2
ii php5 5.4.35-0+deb7u2
ii php5-mysql 5.4.35-0+deb7u2
ii rsyslog [system-log-daemon] 5.8.11-3+deb7u2
ii zip 3.0-6
ii zlib1g 1:1.2.7.dfsg-13
zoneminder recommends no packages.
zoneminder suggests no packages.
-- Configuration Files:
/etc/zm/apache.conf changed [not included]
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/share/zoneminder/index.php (from zoneminder package)
--- /usr/share/zoneminder/index.php.orig 2014-11-10 14:19:49.729657188 +0100
+++ /usr/share/zoneminder/index.php 2014-11-10 14:20:20.820586382 +0100
@@ -54,7 +54,7 @@ else
{
$protocol = 'http';
}
-define( "ZM_BASE_URL", $protocol.'://'.$_SERVER['HTTP_HOST'] );
+define( "ZM_BASE_URL", "" );
if ( isset($_GET['skin']) )
$skin = $_GET['skin'];