I'm trying to migrate to Fusebox and decided I can't migrate all the code at once - at least in a reasonable amount of time.

I wanted to try to move over a functional area at a time until I got my feet wet - at least on our development platform. I originally put a "fusebox" directory in my web root. This kind of worked but had to tweak a few relative URLs in the CSS etc. I'm now trying to set up virtual hosts, figuring I'd put the Fusebox migration in it's own web root.

I've read the documents, checked the archives, and still have a minor problem. I can't get 4D to recognize the multi-homed IP - it always default to the first IP and seems to ignore the "Any" setting in the web preferences.

Configuration
        4D 2003.7 on OS X 10.4, 4D Server as network layer
        Active4D 4.0.0rc4, running on server

Virtualhosts.ini

`IP Address             Hostname[:port]                 Language        Root    
                                        Default
*                               4dfb.aidt.edu:8010              *               
        webfb                                           index.a4d
192.xxx.32.247  *                                               *               
        webfb                                           index.a4d
*                               4ddev.aidt.edu:8010             *               
        weba4d                                          myaidt.a4d
192.xxx.32.248  *                                               *               
        weba4d                                          myaidt.a4d

I've set everything I could to "default" in the Active4D.ini file.

My first attempt was just to use the IP address and I couldn't get it to work. After adding the hostname line, I could get the .248 address to work. Think I had to tweak my On Request method where it was decoding pretty URLs. I could not get the .247 node to work until I added the hostname to DNS and used the hostname in the URL instead of the IP.

I added a debugging line in On Request

log message(get request info("*host address")+":"+$url+ " - "+get request info("*remote address"))

and regardless of what hostname or IP I use in the URL, (get request info("*host address") would always return 192.xxx.32.248 in the log. Again, I have IP Address set to any in Web Server Publishing Preferences. .248 is the first address spit out by ipconfig -a.

Is there something I'm missing in setting this up? Seems that 4D is not returning the IP address input, but the default/first address.

Also seem to be having problems with getting the default script to work. Unless I set it (a blank or / url) in On Request, I'll get a 404 error. I need to work on that a little more (read a little more!)

Steve Alex
AIDT



_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to