Koozali.org: home of the SME Server

2 Servers

Jonaton Smith

2 Servers
« on: April 02, 2000, 01:59:09 AM »
Hello, I am wondering if i can get e-smith to forward an IP address to a different server that I am also running. For example my main server is running on the ip address 204.83.122.66 and has a domain name santarocks.com is there any way I can set it up so that when someone types in hohoho.santarocks.com they get forwarded to 204.83.122.67 ??  Do i need to use ibays?

Charlie Brady

RE: 2 Servers
« Reply #1 on: April 02, 2000, 07:53:58 AM »
Jonaton Smith wrote:

> Hello, I am wondering if i can get e-smith to forward an IP
> address to a different server that I am also running. For
> example my main server is running on the ip address
> 204.83.122.66 and has a domain name santarocks.com is there
> any way I can set it up so that when someone types in
> hohoho.santarocks.com they get forwarded to 204.83.122.67 ??

You just need to get an entry for hohoho.santarocks.com in the DNS for santarocks.com.

> Do i need to use ibays?

Not from the information you have provided. It doesn't sound as though your problem has anything to do with the e-smith server.
Let me know if I've misunderstood something.

Charlie

Jonaton Smith

RE: 2 Servers
« Reply #2 on: April 02, 2000, 12:31:41 PM »
Charlie Brady wrote:
> You just need to get an entry for hohoho.santarocks.com in the
> DNS for santarocks.com.

my DNS is hosted by someone else, how can i setup dns on my computer? Or do I have to get the guy that is hosting it to add the DNS info for hohoho.santarocks.com

Charlie Brady

RE: 2 Servers
« Reply #3 on: April 02, 2000, 01:42:48 PM »
Jonaton Smith wrote:

>> Charlie Brady wrote:
>> You just need to get an entry for
>> hohoho.santarocks.com in the DNS for santarocks.com.
>
> my DNS is hosted by someone else, how can i setup dns on my
> computer? Or do I have to get the guy that is hosting it to
> add the DNS info for hohoho.santarocks.com

WHoever manages DNS for the domain santarocks.com would need to add a record for hohoho.santarocks.com.

Charlie

Jonathon Smith

RE: 2 Servers
« Reply #4 on: April 03, 2000, 09:21:09 AM »
> WHoever manages DNS for the domain santarocks.com would need to
> add a record for hohoho.santarocks.com.

There is no other way to do this???

Charlie Brady

RE: 2 Servers
« Reply #5 on: April 03, 2000, 05:43:02 PM »
Jonathon Smith wrote:

> > WHoever manages DNS for the domain santarocks.com would
> > need to add a record for hohoho.santarocks.com.
>
> There is no other way to do this???

Not if I've understood your problem properly. There is only one system that maps hostnames to IP addresses, and that is the DNS, and DNS for each domain is controlled in only one place.

Charlie

Dave Aldridge

RE: 2 Servers
« Reply #6 on: April 05, 2000, 11:07:24 AM »
You can set up as many servers as you want quite easily.

The first thing to understand is that 'santarocks.com', as a Fully Qualified Domain Name, associated with its designated IP Address within the appropriate DNS Zone file, and its alias, 'www', is all that is required in the DNS.

Verify the DNS setup with PING.

PING santarocks.com - not www.santarocks.com

If 'santarocks.com' pings properly you can then take advantage of an Apache Server feature called Virtual IP-less Hosting or Addressing.

This feature will only work with newer Browsers, IExplore 4.x and higher and the equivalent in Netscape.

Go to the Apache Web Site and read the section on Virtual IP-Less Hosting in the on-line manual to see how this is done.

You will have to manually reconfigure the Apache configuration file on the E-Smith Server. This should not affect the E-Smith operation and will give you the ability to run multiple "servers"..

Be very carefull configuring the file and be sure to back up the original in case you muck something up..

I have used this feature on both Apache Server and O'Reilly's WebSite and it works perfectly.

Also be aware that IExplore and sometimes Netscape have a caching bug that require the cache to be empied before every refresh when checking your setup. (An error page can get stuck in the cache and overide a good server page.)

Good Luck - Dave