Computer Forums

Computer Forums (http://www.geekboards.com/forums/index.php)
-   Building Websites (http://www.geekboards.com/forums/forumdisplay.php?f=3)
-   -   2 servers 1 internet connection (http://www.geekboards.com/forums/showthread.php?t=814)

MacGyver 10-15-2007 01:04 PM

2 servers 1 internet connection
 
Hey all,

I would like to setup two separate fedora web/pop3/smtp servers on two different computers, through a router. I have used the virtual host on one computer and that worked great but I can not figure out how to set up the mail part using Postfix and Dovecot. here is what I would like to do:

domain1.com to internal 192.168.1.10:80
domain2.com to internal 192.168.1.11:80

I have tried setting up this configuration:

domain1.com to internal 192.168.1.10:80
domain2.com to internal 192.168.1.11:81

but they would have to enter the port number and I would like to avoid that,
I was thinking setting up DNS would work but am not sure of this.

Any help would be greatly appreciated,
MacGyver

John 10-17-2007 03:41 PM

I'm not sure about postfix and dovecot since I've never used them (I use Qmail). You might run into some problems with your IP address being blocked by other mail servers since it's likely to be an IP allocated for Internet access and not web/email services. You can check for this on your IP at http://www.spamhaus.org/zen/index.lasso using the IP search box on the left side. My guess is your IP will be in the PBL.

To get multiple web servers running from a single IP address you would need a proxy server behind your router and in front of your web servers.

You'll need to setup public DNS for your domains and have them pointed to your public IP address (do this step last if your websites are currently active and you want to minimize downtime).

Have your router automatically forward port 80 traffic to your proxy server.

Setup DNS on the proxy server so the IP's returned for all your domains point to the internal IP address of whichever webserver is associated with each domain.

Data flow will be as such:

Internet -> your IP/router -> your proxy server -> web server #1 or #2 (depending on domain)


All times are GMT -5. The time now is 03:12 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
HTML Help provided by HTML Help Central.