NetTalk Central

Author Topic: multiple sites, one server - part 3  (Read 3832 times)

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
multiple sites, one server - part 3
« on: December 23, 2009, 02:56:47 AM »
Hello,

A while ago I posted a question (http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=720.0) to be able to host multiple sites on one single IP/Port. This was not possible using NT4. I have downloaded NT5, but am not able to find how to use the host header functionality. Anyone any ideas?

Gr. Sjoerd
Greetz,
Sjoerd

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: multiple sites, one server - part 3
« Reply #1 on: December 23, 2009, 04:20:41 AM »
Hi Sjoerd,

I haven't written up much in the way of docs for this yet, but take a look at the example 59 (MultiSite6).

This comes with 2 "child" sites (site1 and site2)

the host app has some info on the "notes" tab.

In the "sites" ...

notice the prototypes added to the WebServer and WebHandler procedures - with particular note of the NAME attribute on both.

Both these procedures (and none of the others) need to be exported from the Web Server app (which is now set as a DLL not an EXE).

I think the only other setting which affects things in the web app (ie not the host app) is the web folder - I think it gets set to blank in DLL mode - but that's from memory.

Overall there's not a lot to it.

cheers
Bruce

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: multiple sites, one server - part 3
« Reply #2 on: January 20, 2010, 01:54:06 AM »
Bruce,
I have tried to open en build the app but the compiling crashes on Embed:
! Start of "WindowManager Method Executable Code Section"
xml.Load(SettingsGroup,'.\settings.xml','','data')
xml.Load(WorkingGroup,'.\working.xml','','data')

With this error: Syntax error: Field not found: Load

Any ideas?
Am I missing some extentions?

Greetz
Sjoerd
Greetz,
Sjoerd

Graham

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: multiple sites, one server - part 3
« Reply #3 on: January 20, 2010, 04:03:36 AM »
Hi Sjoerd,

Looks like you need xFiles

bergsj

  • Jr. Member
  • **
  • Posts: 81
    • MSN Messenger - swjvandenberg@hotmail.com
    • View Profile
    • Email
Re: multiple sites, one server - part 3
« Reply #4 on: January 20, 2010, 04:05:22 AM »
Just figured it out myself. Thanks for the reply.
Greetz,
Sjoerd