[Chameleon] proxy problems..

Julien-Samuel Lacroix jlacroix at mapgears.com
Mon Mar 20 12:03:03 EST 2006


What did you comment out to make it work?

When viewed from the web, the drawmap URL works?

Julien

Sears, Jeremy wrote:
> Hi Julien,
> 
> ok, here are what I get for variables:
> 
>>From LAN, works:
> var gMapDHTMLURL =
> '/myspace/chameleon//common//wrapper/drawmap.php?map_session_mode=1&run_quer
> y=0&sid=441ed6567f126&dummy=0.44188400+1142871639';
> 
>>From WAN, doesnt work:
> var gMapDHTMLURL =
> '/myspace/chameleon//common//wrapper/drawmap.php?map_session_mode=1&run_quer
> y=0&sid=441ed7059161f&dummy=0.49006900+1142871814';
> 
> .... they look to be the same?
> 
> PhP error reporting is on E_ALL, no php errors are being reported ...
> 
> Also, we noticed that when we comment-out the includes in our phtml file,
> the mapimage and keymap will finally show up when viewed from the web... 
> 
> eg:
> 
> include "./tools/includes/cfs_ess_bar.php";  //problem
> 
> these are including code to draw things like nav bars, headers and footers
> on the same page as the map.\
> It would seem that they are causing the map to fail when viewed from the
> web. Again, there are no prbs when viewed from LAN.
> 
> The gMapDHTMLURL var that is given when the map (sans includes in phtml) is
> successfully viewed from the web is:
> 
> '/natdist/chameleon//common//wrapper/drawmap.php?map_session_mode=1&run_quer
> y=0&sid=441eda1b8ccef&dummy=0.45470900+1142872604';
> 
> Thanks
> Jeremy
> 
> 
> 
> 
> -----Original Message-----
> From: chameleon-bounces at lists.maptools.org
> [mailto:chameleon-bounces at lists.maptools.org]On Behalf Of Julien-Samuel
> Lacroix
> Sent: March 20, 2006 10:54 AM
> To: Sears, Jeremy
> Cc: 'chameleon at lists.maptools.org'
> Subject: Re: [Chameleon] proxy problems..
> 
> 
> Hi,
> If you do a "View Source" in your browser, you will get the URL to your 
> drawmap.php in a JS variable.
> var gMapDHTMLURL = 'http://.../drawmap.php...'
> 
> If you copy paste that in another window, you will get what is return by 
> the server. Try it when it works and when it don't. When it don't work, 
> you will probably get a mapfile error or a session error. We will try to 
> investigate from there. Don't forget to set you php.ini to show all errors:
> error_reporting  =  E_ALL
> 
> Julien
> 
> Sears, Jeremy wrote:
> 
>>Hi all,
>>This email is related to a couple I posted last week seeking assistance
> 
> with
> 
>>my chameleon install behind a proxy... I think the nature of the issue (or
>>at least how I understand it) has changed so I am posting a simmilar
>>question ....
>>I have a mapserver/chameleon application installed on one of our networked
>>servers. When I look at my application from behind our LAN, everything
> 
> works
> 
>>fine. When I look at it from the web, the mapserver generated images dont
>>show up. A note on web access: Inorder to get to the server from WAN, http
>>requests go through a firewall/ proxy server. Obviously the server has a
>>different name when one looks at its pages from WAN than from LAN. 
>>
>>My entire ms4w/chameleon install is setup in a directory on the server
>>simmillar to: d:/proxy/myspace/ms4w/ ..etc ..
>>
>>My application files are set up in a dir simmilar to:
>>d:/proxy/myspace/webappfiles/
>>
>>I have made changes to the conf files so that this set-up works (for the
>>most part).
>>
>>Ok, my application doesnt work from the web. However, all of chameleon's
>>samples work perfectly from the web! My application is not overly
>>dissimmilar to the chameleon samples. This makes me think that the issue
> 
> is
> 
>>a small one, perhaps a line of code im my app, or an incorrectly
> 
> referenced
> 
>>file. Can anyone who is more fammilliar with chameleon suggest what might
> 
> be
> 
>>goin on here? Im assuming that since cham's sample apps work fine, the
>>problem is not with either of the http servers that a web client must pass
>>to get to the app, and likly in my chameleon setup.
>>Im going to go line by line through my files, any thoughts on where I
> 
> should
> 
>>be checking?
>>
>>Many Thanks
>>Jeremy
>> 
>>
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
> 
> 

-- 
Julien-Samuel Lacroix
Mapgears
http://www.mapgears.com/


More information about the Chameleon mailing list