Page 1 of 1

Problems with URL not relative

Posted: Thu Nov 15, 2012 9:07 am
by pyttsen
(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:

Code: Select all

ServerName yyy.<domain>.xxx
ProxyPass / zzz.<subdomain>.<domain>.xxx/
ProxyPassReverse / zzz.<subdomain>.<domain>.xxx/
The problems is that after I login I'm redirected to the internal address:

Code: Select all

zzz.<subdomain>.<domain>.xxx/zm/index.php
If I manual change back to the external address:

Code: Select all

yyy.<domain>.xxx/zm/index.php
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:

Code: Select all

var thisUrl = "zzz.<subdomain>.<domain>.xxx/zm/zm/index.php";
How do I fix this? Any suggestions are welcome...


Kind regards Anders

Re: Problems with URL not relative

Posted: Fri Nov 16, 2012 7:22 pm
by pyttsen
Solved with:

Code: Select all

ProxyPreserveHost On
in the Apache conf file on the front web server...