Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-24-2005, 02:22 AM
|
#1
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
11-24-2005, 04:10 AM
|
#2
|
Member
Registered: Aug 2004
Location: .au
Distribution: debian, BSD
Posts: 104
Rep:
|
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.
|
|
|
11-24-2005, 03:40 PM
|
#3
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Original Poster
Rep:
|
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.
|
|
|
11-25-2005, 01:04 AM
|
#4
|
Member
Registered: Sep 2004
Distribution: Redhat / Fedora
Posts: 114
Rep:
|
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..
|
|
|
11-25-2005, 01:17 AM
|
#5
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|