NetTalk Central

Author Topic: Multiple sites - one server  (Read 4067 times)

Majodi

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • Email
Multiple sites - one server
« on: July 01, 2008, 07:33:47 AM »
Is it possible with NetTalk Web Server to run multiple sites (each having their own domain url) on one single server? I know with "normal" servers this is possible.

Majodi

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Multiple sites - one server
« Reply #1 on: July 02, 2008, 04:26:52 AM »
Hi Majodi,

Although a couple folk have done this, it is not a trivial thing to do (at least not yet.) It's been on my list for a while, and is rapidly getting towards the top I think.

There are a couple things you can do in the meantime, which may help:

a) obviously the 2 servers can run on different ports. It works, but it's not ideal.

b) A server can be assigned multiple IP addresses. If you can get the addresses, then you can "bind" each server to a different ip address (all running on port 80.)

Cheers
Bruce

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Multiple sites - one server
« Reply #2 on: July 15, 2008, 08:18:27 AM »
I've been wanting to o the same thing too. It's kind of a must for someone wanting to run a SaaS revenue model.

I haven't found the equivalent yet, but on one of my websites I park a bunch of domains and switch to the domain using the server info in location.hostname. I've been meaning to see if NetTalk has an equivalent because that could be captured and used to route to the right database.

if ( location.hostname == "nonprofitcard.org" ) {
 
   window.location = "/npc/";
 
} else if ( location.hostname == "www.nonprofitcard.org" ) {
 
   window.location = "/npc/";


Mike Grigsby
Credify Systems
Central Oregon, USA