Solved

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

Posted on 2000-04-07
3
168 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
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 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