Hi all, After testing the conversion of our app to v11 (v11.8) running on windows (Server 2008), I'm finally beginning the move to Active4D v5 (v5.0r27). I am using fusebox.
I have the basics running fine, but I'm having a problem with the VirtualHosts.ini settings. I basically copied the settings from my v4.5 file and made a few updates. What I have is: //IP Address Hostname[:port] Language Root Default * www.willsub.com<http://www.willsub.com> * <web>/willsub/|live index.asp * dev.willsub.com * <web>/willsub/|dev index.asp * v11.willsub.com * <web>/willsub/|v11 index.asp 10.0.0.24 * * <web>/willsub/ index.asp * 10.0.0.24 * <web>/willsub/ index.asp 10.0.0.25 * * <web>/willsub/ index.asp * 10.0.0.25 * <web>/willsub/ index.asp 10.0.0.21 * * <web>/willsub/ index.asp * 10.0.0.21 * <web>/willsub/ index.asp 10.0.0.27 * * <web>/willsub/ index.asp * 10.0.0.27 * <web>/willsub/ index.asp My install uses Apache in front of 4D Server and in this case the new test domain v11.willsub.com is coming from the Apache Server on 10.0.0.25. In Active4D.ini I've left the web root set to the default (<default>/web). The issue is that when I hit http://v11.willsub.com, I get a page from the web root directory, <web>, not from the one named 'willsub' nested within it. On the page it is displaying, I embedded the following code: <% $webroot:=get root %> <% $webrootnamed:=get root("v11") %> Followed by: <% =$webroot %> <% =$webrootnamed %> What I get is: /C/Willsub_Projects/Willsub_v11/web/ /C/Willsub_Projects/Willsub_v11/web/willsub/ I'm sure this is the source of my problem. I expected to get the same thing in both writes because the manual says (pg. 362): get root({inVirtualHost})-->Text "If you have defined virtual hosts in VirtualHosts.ini and inVirtualHost is not passed, get root will return the mapped web root of the current virtual host." All this is to ask the following question, how is the 'current virtual host' being determined? This IP scheme worked in Active4D v4.5 (though I know, many, many changes) Any and all help greatly appreciated. Sincerely, Mike Vogt Willsub _______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
