1) Do I simply configure the VirtualHosts.ini file exactly the same as
indicated in the instructions? (I would guess yes, but I'm not totally clear
on this.)
Yes, use the hostname field to resolve between www.site1.com and www.site2.com. Make sure your DNS servers are set up to redirect site1.com to www.site1.com, or add another entry in virtualhosts.ini for site1.com.
2) What happens if someone enters
"http://192.168.1.7/innercontents/innerfile.html", and that path happens to
be valid in two different sites? (ie,
http://www.site1.com/innercontents/innerfile.html and
http://www.site2.com/innercontents/innerfile.html both exist). How does
Active4D resolve this? Would the way to avoid this problem be to force the
user to use a host name in their request, and set up an entry in the
VirtualHosts.ini for the IP address in the Host Name column to direct this
request appropriately (ie, some page that says "please use the site name in
your url?")?
If they use an IP address in the browser and you have multiple sites with the same URL on the same IP, you have to do something to prevent this, because there is no way for the poor server to magically know their intention.
Your suggestion of an entry in virtualhost.ini for the raw IP address seems to be the best solution. In addition to the warning, you might consider adding a prompt to ask them which site they wanted to go to and give them links.
3) What about SSL? Reading up on host headers and the IIS server, it appears
this doesn't work (see http://support.microsoft.com/?id=187504). I would
think the same problem applies to 4D/Active4D?
I'm not sure about that, but I think 4D decrypts the request _before_ it gets to On Web Connection, which means it is decrypted before it gets to Active4D, which means virtualhosts.ini will work.
4) Also, isn't the SSL certificate tied to a specific domain (ie,
"www.site1.com")? So how does it work even in a multihoming situation? Isn't
there just one certificate for the web server? (Or once you have the SSL
certificate set up, it doesn't matter what the incoming domain is?)
Not sure, maybe someone else can answer this.
Regards,
- Aparajita
_______________________________________________ Active4D-dev mailing list [email protected] http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/
