[plug] re: Apache virtual host

Jon Miller jlmiller at mmtnetworks.com.au
Tue Jun 3 18:02:09 WST 2003


I have Apache installed on a RHL72 server.  I would like to know how do I go about setting up a virtual host for 2 private companies using the same ipaddress from the internet?
In other words, if someone is looking for xyz.com.au (203.111.222.223) they are automatically redirected to ip address 203.111.222.224  
On the one web server I want to be able to redirect any requests to their server located at 192.168.0.1. Do I do this with the following virtual host directive?

# <VirtualHost 192.168.0.1>
#    ServerAdmin admin at domain.com.au
#    DocumentRoot /var/www/html/public_html
#    ServerName www.domian.com.au
#    ErrorLog logs/domain.com.au-error_log
#    CustomLog logs/domain.com.au-access_log common
# </VirtualHost>

Thanks


Jon L. Miller, MCNE, CNS
Director/Sr Systems Consultant
MMT Networks Pty Ltd
http://www.mmtnetworks.com.au

"I don't know the key to success, but the key to failure
 is trying to please everybody." -Bill Cosby






More information about the plug mailing list