Thai wrote: 
| 
| > great, but I can't see any directive in Apache do that. Can you tell me that
| > particular directive? And if you can, could you send me a sample httpd.conf?
| > Thank you very much.
| >

these are the relvant parts from our httpd.conf which necessarily does
the same thing.

####################

NameVirtualHost a.b.c.d   # ip address of ur gateway machine which is
                          # running apache. 

<VirtualHost a.b.c.d>     # a.b.c.d is the gateway ip as above
ServerName www.somewhere.net
ProxyPass / http://192.168.0.2/  # internal ip where www.somewhere.net
                                 # is hosted
ProxyPassReverse / http://192.168.0.2/
</VirtualHost>

<VirtualHost a.b.c.d>
ServerName www.linux.somwhere.net  # another host
ProxyPass / http://192.168.10.3/  
ProxyPassReverse / http://192.168.10.3/
</VirtualHost>

###############################

on your external dns, all sites should resolve to a.b.c.d (which is your
gateway machine.

--
regards
rony
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to