Problems with URL not relative

Forum for questions and support relating to the 1.25.x releases only.
Locked
pyttsen
Posts: 2
Joined: Thu Nov 15, 2012 8:41 am

Problems with URL not relative

Post 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
pyttsen
Posts: 2
Joined: Thu Nov 15, 2012 8:41 am

Re: Problems with URL not relative

Post by pyttsen »

Solved with:

Code: Select all

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