Re: [pmapper-users] pmapper and mod_proxy
Brought to you by:
arminburger
From: Armin B. <arm...@gm...> - 2006-11-24 20:49:32
|
Jachym Cepicky wrote: > Hallo, > > we have our with p.mapper behind router, where we use Apache2 to for > redirecting requests to it. > > Configuration of the router looks like this: > > <VirtualHost mapserver.mendelu.cz> > ServerName mapserver.mendelu.cz > > # redirection to p.mapper server > ProxyPass /slp http://172.16.38.110/ > ProxyPassReverse /slp http://172.16.38.110/ > > </VirtualHost> > > It works, as you can see on address > http://mapserver.mendelu.cz/slp/map.phtml but no map appears and no > message appears in the Appache log. > > When I try to access the server directly from local network, it works > like a charm. Could you tell me, where the problem could be? I don't know much about proxy and reverse proxy settings, but do you also have a proxy pass set for the tmp directory where the map image is created (the one defined in the map file for IMAGEURL)? > > Second problem seams to be bug in p.mapper: if the server's firewall is > configured, that it redirects every request from port 8080 to server > with p.mapper (so http://mapserver.mendelu.cz:8080/ -> http://172.16.38.110/) > everything works well, but "Link to current map" points to > http://mapserver.mendelu.cz8080/map?dg=false&me=-605769...... > __^__ -> the ":" is missing I'm quitre sure I never tested on another port than 80... You can modify the file xmlhttp.js after line 192 var port = loc.port > 0 ? ':' + loc.port : ''; var linkhref = loc.protocol + '//' + loc.hostname + port + loc.pathname + '?dg=' + dg + '&me=' + me + '&language=' + gLanguage + confpar + urlPntStrPar; armin |