LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-24-2005, 02:22 AM   #1
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Single IP multible domain names


I feel kind of stupid for asking this. I Google off and on for a while and did not find anything. Maybe I just didn't use the right terminology. So here it goes.

I have a static IP address and a single domain name pointed to it. Right now I am running a cheap Best Buy router that forwards ports to my servers. Everything works fine, but I would like to host multible domains on my server(s). So if domain A and B are in one server and domain C is on another.

I am at a loss on exactly how to set this up. Is there a way to make it work with my cheap router or should I make a Linux router (I do not have hunders or dollars to spend on a hardware one). If someone could explain or point me to a how to on how to do this I would be greatful.
 
Old 11-24-2005, 04:10 AM   #2
angrybeaver
Member
 
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104

Rep: Reputation: 17
It really depends on what you mean by "host multible domains on my server(s)" - do you mean just web and mail for example?

Simple port forwarding from your routers public interface to your LAN based server should give you what you want as postfix,sendmail,courier,qmail etc all support virtual domain support. Similarly Apache httpd supports name based hosting. It might be take a little time to split SMTP/POP3/HTTP over multiple boxen, but it's not impossible. Without gear that supports deep packet inspection, it will be near to impossible to forward ports based on the domain or host portion of the inbound requests to a single public IP on the router - you'll need some server side smarts or a local proxy to forward as needed...

If you could clarify your topology however, I could probably give some better advice.
 
Old 11-24-2005, 03:40 PM   #3
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Original Poster
Rep: Reputation: 78
I was not that clear (late night). I want to register 2 or more domain names. I would like to have each domain names on a seperate web server. When a request is sent to domain A, I would like the router to send that request to server A. When when a request is sent to domain B, I would like that request to be sent to server B.

I have a site what is running on a webserver running Apache. I also have a test site that is running on a server using Zope with Plone. Plone is a little resource heavy for to run both on, so I had to use one server for each.

Right now I have to run one server on port 80 and the other on port 8080.
 
Old 11-25-2005, 01:04 AM   #4
abhijeetudas
Member
 
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114

Rep: Reputation: 15
i think i got what you want..

Apache can have multiple domains running on a single 'instance'

use some thing called Name based virttual host where you can specify that


Domain A = www.example.com
Domain B = www.acme.net

so any one asks for www.example.com it will automatically take you to example.com

and as for your router..
as long as it forwards the port 80 { HTTP } to 80 on the machine apache can handle multiple domains..
 
Old 11-25-2005, 01:17 AM   #5
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Original Poster
Rep: Reputation: 78
I was wanting the router to send the requests to different servers. Like sever A is domain A webserver and server B is domian B webserver.

The one webserver is running Zope with and the other is running Apache.

Last edited by tangle; 11-25-2005 at 01:18 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
domain names xaos5 Linux - Networking 2 06-09-2005 03:03 AM
replacing single quotes in file names adenardo Linux - General 2 05-27-2005 12:29 PM
Domain Names...? cparker15 Linux - Networking 8 08-27-2003 08:13 AM
Domain Names Timbo General 7 02-14-2003 04:10 PM
domain names cic Linux - Networking 3 06-11-2002 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration