NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: bergsj on December 23, 2009, 02:56:47 AM

Title: multiple sites, one server - part 3
Post by: bergsj 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
Title: Re: multiple sites, one server - part 3
Post by: Bruce 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
Title: Re: multiple sites, one server - part 3
Post by: bergsj 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
Title: Re: multiple sites, one server - part 3
Post by: Graham on January 20, 2010, 04:03:36 AM
Hi Sjoerd,

Looks like you need xFiles
Title: Re: multiple sites, one server - part 3
Post by: bergsj on January 20, 2010, 04:05:22 AM
Just figured it out myself. Thanks for the reply.