If this isn't exactly what you wanted, please try our Search (there's a LOT of techy and non-techy stuff here about Linux, Unix, Mac OS X and just computers in general!):
From - Mon Sep 18 08:00:42 2000 Path: news.randori.com!newsfeeder.randori.com!newscon06.news.prodigy.com!newscon04.news.prodigy.com!prodigy.com!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!blackbush.xlink.net!rz.uni-karlsruhe.de!schlund.de!inka.de!not-for-mail From: Bernd Eckenfels <ecki@lina.inka.de> Newsgroups: comp.os.linux.misc,comp.os.linux.networking Subject: Re: 2 webservers behind firewall? HOW Date: 18 Sep 2000 01:59:20 GMT Organization: (Posted via) INKA e.V. http://www.inka.de/ Lines: 45 Message-ID: <8q3sto$c6s$4@sapa.inka.de> References: <blKw5.2368$3u6.230027@news20.bellglobal.com> NNTP-Posting-Host: lina.inka.de X-Trace: sapa.inka.de 969242360 12508 212.227.16.17 (18 Sep 2000 01:59:20 GMT) X-Complaints-To: newsmaster@inka.de NNTP-Posting-Date: 18 Sep 2000 01:59:20 GMT User-Agent: tin/1.4.1-19991201 ("Polish") (UNIX) (Linux/2.4.0-test2 (i686)) Xref: news.randori.com comp.os.linux.misc:229167 comp.os.linux.networking:184973 X-Mozilla-Status: 8010 X-Mozilla-Status2: 00000000 In comp.os.linux.networking D. Abuan <dennis@exposoft.net> wrote: > I have two webservers behind a Redhat 6.2 PC running IP Masquerading. I > know how to port forward one webserver > if there is a request to my external PC's IP address at port 80. But I want > to set up another one....running NT (for > my room mate who wants to run IIS) how can I set this up????
Asuming you dont want to have two different ports (which is easy and will work as long as you can tell the users what URL to use) you have to assign your firewall two oficial ip addresses or use a reverse proxy with url rewriting or host-name-based virtual hosts. Apache can do this for example. Then you can assign two DNS names to your one official address, or you can have two different directories point to two different servers: www.aaa.com = www.bbb.com = 1.2.3.4 http://www.aaa.com/ -> http://10.0.0.1 http://www.bbb.com/ -> http://10.0.0.2 or http://www.aaa.com/s1/* -> http://10.0.0.1/* http://www.aaa.com/s2/* -> http://10.0.0.2/*
this is done in apache with mod_proxy like this: -- NameVirtualHost 1.2.3.4 <VirtualHost www.aaa.com:80> ServerName www.aaa.com ProxyPass / http://10.0.0.1/ </VirtualHost> <VirtualHost www.bbb.com:80> ServerName www.bbb.com ProxyPass / http://10.0.0.2/ </VirtualHost> -- Greetings Bernd
/Bofcusm/560.html copyright 1997-2004 (various authors) All Rights Reserved
Have you tried Searching this site?
Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates
This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.
Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.
Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.
We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.
Click here to add your comments
Don't miss responses! Subscribe to Comments by RSS or by Email
Click here to add your comments
If you want a picture to show with your comment, go get a Gravatar