From: "MrBiTs" Date: Fri, 28 Mar 2003 18:31:59 +0000 Subject: [LARTC] Routing Web to internal IIS servers MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000E_01C2F53F.326ACCC0" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C2F53F.326ACCC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, All Today I finished a routing for multiple hosts in my network. The problem was: I have only one class C IP ( 200.189.73.130 ), answering for two domains ( realad.com.br and realmedia.com.br ). Both domains have a www host, so I have www.realad.com.br and www.realmedia.com.br pointed to 200.189.73.130. 200.189.73.130 is a Red Hat 7.3 Linux box. My websites are in a Windows 2K machine, answering for 192.168.0.2 and 192.168.0.5. So realad is in .2 and realmedia is in .5. The problem was: how could I route requests from realad to 192.168.0.2:80 and requests from realmedia to 192.168.0.5:80 ? I solved this using mod_proxy in apache. So, I have an apache web server in the linux box, with tow virtual hosts routing for the Windows machine... The steps were: 1) Compile apache with mod_proxy ( ./configure --enable-module=proxy --enable-shared=proxy ) 2) Remove HostHeaderName directive from IIS sites 3) Configure httpd.conf with virtual hosts, like this: ServerName www.realad.com.br ProxyRequests On Order deny,allow Allow from all ProxyPass / http://192.168.0.2:80/ ProxyPassReverse / http://192.168.0.2:80/ ServerName www.realmedia.com.br ProxyRequests On Order deny,allow Allow from all ProxyPass / http://192.168.0.5:80/ ProxyPassReverse / http://192.168.0.5:80/ That's it Thanks a lot for all attention and help Diogo Carlos Fernandes Technical Support Manager Real Media Latin America www.realmedia.com Phone .: 55+11+3842-2166 Mobile .: 55+11+9266-5325 e-mail .: dfernandes@realmedia.com ------=_NextPart_000_000E_01C2F53F.326ACCC0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Hi,=20 All
 
Today = I finished a=20 routing for multiple hosts in my network.
 
The = problem=20 was:
 
I have = only one=20 class C IP ( 200.189.73.130 ), answering for two domains ( realad.com.br  and = realmedia.com.br ).=20 Both domains have a www host, so I have www.realad.com.br and www.realmedia.com.br pointed to = 200.189.73.130.
 
200.189.73.130 is a=20 Red Hat 7.3 Linux box. My websites are in a Windows 2K machine, = answering for=20 192.168.0.2 and 192.168.0.5. So realad is in .2 and realmedia is in .5. = The=20 problem was: how could I route requests from realad to 192.168.0.2:80 = and=20 requests from realmedia to 192.168.0.5:80 ?
 
I = solved this using=20 mod_proxy in apache. So, I have an apache web server in the linux box, = with tow=20 virtual hosts routing for the Windows machine... The steps=20 were:
 
1) = Compile apache=20 with mod_proxy ( ./configure --enable-module=3Dproxy = --enable-shared=3Dproxy=20 )
2) = Remove=20 HostHeaderName directive from IIS sites
3) = Configure=20 httpd.conf with virtual hosts, like this:
 
<VirtualHost=20 200.189.73.130>
        = ServerName www.realad.com.br
  &n= bsp;    =20 <IfModule=20 mod_proxy.c>
         =       =20 ProxyRequests=20 On
           &= nbsp;   =20 <Directory=20 proxy:*>
         &nbs= p;            = ; =20 Order=20 deny,allow
          = ;            =  =20 Allow from=20 all
           =     =20 </Directory>
        &nb= sp;      =20 ProxyPass / http://192.168.0.2:80/  &nb= sp;           &nbs= p;        =20
           &nb= sp;   =20 ProxyPassReverse / http://192.168.0.2:80/  &nb= sp;           &nbs= p;        =20
       =20 </IfModule>
</VirtualHost>
 
<VirtualHost=20 200.189.73.130>
        = ServerName www.realmedia.com.br
 &n= bsp;     =20 <IfModule=20 mod_proxy.c>
         =       =20 ProxyRequests=20 On
           &= nbsp;   =20 <Directory=20 proxy:*>
         &nbs= p;            = ; =20 Order=20 deny,allow
          = ;            =  =20 Allow from=20 all
           =     =20 </Directory>
        &nb= sp;      =20 ProxyPass / http://192.168.0.5:80/  &nb= sp;           &nbs= p;            = ;          =20
           &nb= sp;   =20 ProxyPassReverse / http://192.168.0.5:80/  &nb= sp;           &nbs= p;            = ;           =20
       =20 </IfModule>
</VirtualHost>
That's = it
Thanks = a lot for all=20 attention and help
 
 

Diogo Carlos Fernandes
Technical Support=20 Manager

Real Media Latin=20 America 
www.realmedia.com

Phone .: 55+11+3842-2166
Mobile .: 55+11+9266-5325=20
e-mail .: dfernandes@realmedia.com

 
------=_NextPart_000_000E_01C2F53F.326ACCC0-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/