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 <http://www.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: <VirtualHost 200.189.73.130> ServerName www.realad.com.br <IfModule mod_proxy.c> ProxyRequests On <Directory proxy:*> Order deny,allow Allow from all </Directory> ProxyPass / http://192.168.0.2:80/ ProxyPassReverse / http://192.168.0.2:80/ </IfModule> </VirtualHost> <VirtualHost 200.189.73.130> ServerName www.realmedia.com.br <IfModule mod_proxy.c> ProxyRequests On <Directory proxy:*> Order deny,allow Allow from all </Directory> ProxyPass / http://192.168.0.5:80/ ProxyPassReverse / http://192.168.0.5:80/ </IfModule> </VirtualHost> 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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Message</TITLE> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dus-ascii"> <META content=3D"MSHTML 6.00.2723.2500" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial size=3D2>Hi,=20 All</FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial size=3D2>Today = I finished a=20 routing for multiple hosts in my network. </FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial size=3D2>The = problem=20 was:</FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial size=3D2>I have = only one=20 class C IP ( 200.189.73.130 ), answering for two domains ( r<A=20 href=3D"http://www.realad.com.br">ealad.com.br</A> and = realmedia.com.br ).=20 Both domains have a www host, so I have <A=20 href=3D"http://www.realad.com.br">www.realad.com.br</A> and <A=20 href=3D"http://www.realmedia.com.br">www.realmedia.com.br</A> pointed to = 200.189.73.130.</FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial = size=3D2>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 ?</FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial size=3D2>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:</FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial size=3D2>1) = Compile apache=20 with mod_proxy ( ./configure --enable-module=3Dproxy = --enable-shared=3Dproxy=20 )</FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial size=3D2>2) = Remove=20 HostHeaderName directive from IIS sites</FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial size=3D2>3) = Configure=20 httpd.conf with virtual hosts, like this:</FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial = size=3D2><VirtualHost=20 200.189.73.130><BR> = ServerName <A=20 href=3D"http://www.realad.com.br">www.realad.com.br</A><BR> &n= bsp; =20 <IfModule=20 mod_proxy.c><BR> = =20 ProxyRequests=20 On<BR> &= nbsp; =20 <Directory=20 proxy:*><BR> &nbs= p;  = ; =20 Order=20 deny,allow<BR>  = ; = =20 Allow from=20 all<BR> = =20 </Directory><BR> &nb= sp; =20 ProxyPass / <A=20 href=3D"http://192.168.0.2:80/">http://192.168.0.2:80/</A> &nb= sp; &nbs= p; =20 <BR> &nb= sp; =20 ProxyPassReverse / <A=20 href=3D"http://192.168.0.2:80/">http://192.168.0.2:80/</A> &nb= sp; &nbs= p; =20 <BR> =20 </IfModule><BR></VirtualHost></FONT></SPAN></DIV> <DIV> </DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial = size=3D2><VirtualHost=20 200.189.73.130><BR> = ServerName <A=20 href=3D"http://www.realmedia.com.br">www.realmedia.com.br</A><BR> &n= bsp; =20 <IfModule=20 mod_proxy.c><BR> = =20 ProxyRequests=20 On<BR> &= nbsp; =20 <Directory=20 proxy:*><BR> &nbs= p;  = ; =20 Order=20 deny,allow<BR>  = ; = =20 Allow from=20 all<BR> = =20 </Directory><BR> &nb= sp; =20 ProxyPass / <A=20 href=3D"http://192.168.0.5:80/">http://192.168.0.5:80/</A> &nb= sp; &nbs= p;  = ; =20 <BR> &nb= sp; =20 ProxyPassReverse / <A=20 href=3D"http://192.168.0.5:80/">http://192.168.0.5:80/</A> &nb= sp; &nbs= p;  = ; =20 <BR> =20 </IfModule><BR></VirtualHost><BR></FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial size=3D2>That's = it</FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial size=3D2>Thanks = a lot for all=20 attention and help</FONT></SPAN></DIV> <DIV><SPAN class=3D304322418-28032003><FONT face=3DArial=20 size=3D2> </DIV></FONT></SPAN> <DIV> </DIV> <P align=3Dleft>Diogo Carlos Fernandes<BR>Technical Support=20 Manager<BR><BR><B><FONT color=3D#ff0000>Real</FONT> Media Latin=20 America</B> <BR>www.realmedia.com </P> <P><B>Phone</B> .: 55+11+3842-2166 <BR><B>Mobile</B> .: 55+11+9266-5325=20 <BR><B>e-mail</B> .: dfernandes@realmedia.com </P> <P></P> <DIV> </DIV></BODY></HTML> ------=_NextPart_000_000E_01C2F53F.326ACCC0--