[Geomoose-users] Printing not working on my remote host (GM 2.0)
Len Kne
lkne at houstoneng.com
Thu Feb 18 10:22:36 EST 2010
Hi Franz
You could try setting the server_name=localhost, this would be the same as giving it the internal IP address. This probably is not going to fix the printing because:
Web hosting services generally host multiple websites on a single IP address. The web server looks at the header that is sent with the request to determine which virtual website to send it to. When opening a page by IP address, the header contains the IP address as the server name, and thus goes to the default website.
On our hosting server, we get around this by setting up a host entry which points to the internal IP address. For example:
internal-gm.houstoneng.com 192.168.1.1
Then in settings.ini, server_name=internal-gm.houstoneng.com, which points the GeoMOOSE services to the correct internal IP address. If your service provider could add this entry, that will hopefully allow printing. Another diagnostic test is to make sure that WMS layers are printing as they should not be affected by this setting.
Len
From: FRANZ OKYERE [mailto:franzzoa at hotmail.com]
Sent: Thursday, February 18, 2010 12:49 AM
To: Len Kne; geomoose-users at lists.sourceforge.net
Subject: RE: [Geomoose-users] Printing not working on my remote host (GM 2.0)
I have tried you suggestion but I think you suspicion is rather true. The website is hosted on a shared server so I guess I will not be able to print! Any other suggestions- can I ask the host what the real IP address is instead of the disguised ip infront of the firewall?
Thanks
Franz
________________________________
From: lkne at houstoneng.com
To: franzzoa at hotmail.com; geomoose-users at lists.sourceforge.net
Date: Tue, 16 Feb 2010 09:11:22 -0600
Subject: RE: [Geomoose-users] Printing not working on my remote host (GM 2.0)
Try updating print.php and print_util.php from trunk or the GeoMOOSE 2.2 download. Then in settings.ini add the line:
server_name=www.myghanasearch.com
The server_name needs to be the FQN that the server will see itself as. That is, if from the server you ping www.myghanasearch.com<http://www.myghanasearch.com/>, it should resolve to the IP address of the server itself (not the IP address on the outside of the firewall). This gets a little trickier if your site is on a hosted server behind a firewall with multiple sites on the server. Hopefully this is not the case and it will work with the steps above.
Len
From: FRANZ OKYERE [mailto:franzzoa at hotmail.com]
Sent: Tuesday, February 16, 2010 8:40 AM
To: geomoose-users at lists.sourceforge.net
Subject: [Geomoose-users] Printing not working on my remote host (GM 2.0)
Hi All,
Please find attached the print.php, download.php, print_util.php and my settings.ini to see if you can figure out why I am able to print locally but not able to print from the the website. I don't get any errors when I run getmapbook.php or run the www.myghanasearch.com/search/php/download.php.
Thanks.
Franz Okyere
GIS Specialist
________________________________
Do you want a Hotmail account? Sign-up now - Free<http://clk.atdmt.com/UKM/go/197222280/direct/01/>
________________________________
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now<http://clk.atdmt.com/UKM/go/195013117/direct/01/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100218/6b6be426/attachment.html
More information about the Geomoose-users
mailing list