Problems with URL not relative
Posted: Thu Nov 15, 2012 9:07 am
(Note: I had to remove all the initial http in the example URLs to be able to post as a new user on the forum)
Hi,
I'm using the ZoneMinder virtual appliance and "forwards" all requests from my external webserver to ZoneMinder with an Apache reverse-proxy, like this:
The problems is that after I login I'm redirected to the internal address:
If I manual change back to the external address:
I comes to the main screen.
If I then chooses a monitor (yyy.<domain>.xxx/zm/index.php?view=watch&mid=1) I get not picture. The html source says:
How do I fix this? Any suggestions are welcome...
Kind regards Anders
Hi,
I'm using the ZoneMinder virtual appliance and "forwards" all requests from my external webserver to ZoneMinder with an Apache reverse-proxy, like this:
Code: Select all
ServerName yyy.<domain>.xxx
ProxyPass / zzz.<subdomain>.<domain>.xxx/
ProxyPassReverse / zzz.<subdomain>.<domain>.xxx/
Code: Select all
zzz.<subdomain>.<domain>.xxx/zm/index.php
Code: Select all
yyy.<domain>.xxx/zm/index.php
If I then chooses a monitor (yyy.<domain>.xxx/zm/index.php?view=watch&mid=1) I get not picture. The html source says:
Code: Select all
var thisUrl = "zzz.<subdomain>.<domain>.xxx/zm/zm/index.php";
Kind regards Anders