[fusion-users] Map does not draw using a virtual host
Jason Birch
Jason.Birch at nanaimo.ca
Wed Oct 29 12:49:04 EDT 2008
Hi Andrew,
These apps are referencing fusion as ../fusion
I'm guessing that you have fusion at:
/var/www/htdocs/fusion
and demo at:
/var/www/htdocs/demo
If you create a virtual host for demo.source3.com pointing to:
/var/www/htdocs/demo
Then you can no longer reference fusion as
../fusion
because Apache cannot reference files outside of the document root.
To solve this I would suggest either adding a line like this to your
virtual host for Demo:
Alias /fusion /var/www/htdocs/fusion
or creating a symlink to fusion under the demo directory:
cd /var/www/htdocs/demo
ln -s /var/www/htdocs/fusion fusion
You may also want to modify your index.html file to reference fusion as
/fusion/ instead of ../fusion/ which will work for both cases and be
more accurate for the virtual host.
Jason
-----Original Message-----
From: fusion-users-bounces at lists.osgeo.org
[mailto:fusion-users-bounces at lists.osgeo.org] On Behalf Of Andrew Parker
Sent: Wednesday, October 29, 2008 08:57
To: fusion-users at lists.osgeo.org
Subject: [fusion-users] Map does not draw using a virtual host
I have Fusion working on my server at HostGIS. When I access the demo
using http://216.93.173.156/demo/ the map renders. But when I use the
virtual host http://demo.source3.com I get an error and the map does not
draw. In Firebug, I see the error but cannot figure out what is causing
it.
HostGIS checked the server on their side and said everything is fine.
*** FROM HostGIS ***
Ah, I see in the error log a major clue:
[Tue Oct 28 12:31:48 2008] [error] [client 67.142.161.26] File does not
exist: /var/www/htdocs/demo/fusion, referer: http://demo.source3.com/
[Tue Oct 28 12:31:49 2008] [error] [client 67.142.161.26] File does not
exist: /var/www/htdocs/demo/fusion, referer: http://demo.source3.com/
Looks to me like you didn't fix an URL in your application: it's still
looking for /demo/fusion or something like that. Double check your URLs
and make sure they're all correct; the webserver is behaving properly.
*** END HostGIS ****
I am having the same problem with the template from
../fusion/template/mapserver/standard. When I access the template from
http://216.93.173.156/pitrule/ the map draws. When I access the
template from the virtual host http://pitrule.source3.com I get an
error. In Firebug I can see the cause of the error. But what is
causing it?
Thanks for helping me so much. Hopefully in a week or two I will have a
good grasp of Fusion and stop asking so many questions!
_______________________________________________
fusion-users mailing list
fusion-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/fusion-users
More information about the fusion-users
mailing list