Solved

For all my points: 2 Web Servers, 1 Firewall, 1 IPAddress?

Posted on 2000-04-07
3
170 Views
Last Modified: 2010-03-18
I've got two domains, each with a separate web site and mail server.  I also have a LAN masqueraded behind a firewall.

Right now, this is using 3 IP addresses.  If I can get to 1, I get a gold star ($30/mo cheaper DSL service :-)

I know I can do port forwarding to get one of them pulled in, but that doesn't really get me anything.  Is there a more sophisticated version of port forwarding that'll deconstruct packets coming in on a given port (like, say, port 80 :-), figure out which are trying to reach which domain name, and then forward them along to different locations depending on the results?


Thanks,

-Ben
0
Comment
Question by:benha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2695221
What web server are you using and does it support something like Apache's "Name based virtual hosts"? That's a mechanism that allows the web server to provide a virtual host capability using a single IP address. The various virtual hosts are distinguished by the hostname in the URL. You can read about it and get an idea of how it works from the Apache docs at: http://www.apache.org/docs/vhosts/index.html. Obviously both web servers will need to be on one box.

The mail issue can probably be handled by a clever sendmail configuration and some MX records. Perhaps by the use of the virtualhost capapbility and/or a usermap, or by using a sendmail relay. I can't tell for certain which way would be best without knowing more specifics.
0
 
LVL 2

Accepted Solution

by:
pheur earned 75 total points
ID: 2707330
You can manage with a single IP. Apache is simple to set up to use multiple domains on a single IP (domain selection can be based on the host part of the URL - name based vhosts). Sendmail also allows that, but the exact setup depends on your needs (for the same users on all the domains you don't need to do anything, in other cases you will have to play with virtusertable).

Sample (working) apache setup:

NameVirtualHost 194.102.215.2
<VirtualHost 194.102.215.2>
    ServerName www.maxnet.ro
    DocumentRoot /var/www/www.maxnet.ro
</VirtualHost>
<VirtualHost 194.102.215.2>
    ServerName www.sumi.ro
    DocumentRoot /var/www/www.sumi.ro
</VirtualHost>

The above example is from a config with 14 vhosts on a single IP. Sendmail was configured with virtusertable and there are office@... accounts on 4 different domains on the same server.
0
 

Author Comment

by:benha
ID: 2708629
Thanks for the help!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question