[H-GEN] Virtual Webhosting / IP aliasing

James C. McPherson James.McPherson at mq.edu.au
Tue Aug 17 02:58:36 EDT 1999


[ Humbug *General* list - semi-serious discussions about Humbug and
Unix-related topics. ]


Willie Yeo writes:
 > [ Humbug *General* list - semi-serious discussions about Humbug and
 > Unix-related topics. ]
 > 
 > 	Anyone wants to tell me how to set this up properly ?
 > 
 > 	System : RH6.0 Linux Kernel 2.2.10
 > 
 > 	Options: IP aliasing and stuff compiled into Kernel.
 > 
 > 	Say, I wanna put on my work machine something.work.com.au to be
 > aliased also as kingfisher.humbug.org.au AND myhobby.org (I know have to
 > register a DNS entry, which is not a problem, assuming that the DNS
 > entries from the external source are pointed to the something.work.com.au)
 > And if I have enough IP address to support extra entries.
 > 
 > 	I want to be able to accept : www.kingfisher.humbug.org.au
 > 			as well as  : www.myhobby.org
 > 
 > 	If possible ... email (MX entries) and perhaps, virtual FTP ?
 > 
 > 	Firstly, I wanna explain that the above is not going to be used in
 > a commercial environment. It is mainly a hobby of learning something, as
 > well as I want to put www.kingfisher.humbug.org.au on the WWW.
 > 


well, the web server stuff you can use apache's vhost options for. For mail,
if you're using sendmail then in your .mc file have something akin to the
following:

Cwmailhost.proteome.org.au
Cwmail.proteome.org.au
Cwproteome.org.au  

(note that if you put those in then I'll get a tad annoyed since it's my
server ;>)

You'll need cnames too - who's your friendly DNS admin?

For apache, use something similar to this:

NameVirtualHost 137.111.176.200
<VirtualHost 137.111.176.200>
        ServerName      chef.proteome.org.au
        ServerAdmin     webmaster at chef.proteome.org.au
        DocumentRoot    /usr/local/httpd/htdocs
        ErrorLog        logs/chef-errors
</VirtualHost>
<VirtualHost 137.111.176.200>
        ServerName      www.proteome.org.au
        ServerAdmin     webmaster at www.proteome.org.au
        DocumentRoot    /usr/local/httpd/htdocs/current_www.proteome.org.au
        ErrorLog        logs/www.proteome.org.au-errors
</VirtualHost>
<VirtualHost 137.111.176.200>
        ServerName      test.proteome.org.au
        ServerAdmin     webmaster at www.proteome.org.au
        DocumentRoot    /export/home/system/jcm/APAF/chef/new-www
        ErrorLog        logs/test.proteome.org.au-errors
        alias /images/  "/export/home/system/jcm/APAF/chef/new-www/images/"
        <Directory "/export/home/system/jcm/APAF/chef/new-www/images">
                Options Indexes Multiviews
                AllowOverride none
                order allow,deny
                allow from all
        </Directory>
</VirtualHost>
                                                         


got that down? ok. try it yourself ;)



cheers,
James C. McPherson
--
Unix Systems Administrator            Phone: +61.2.9850.9418
Office of Computing Services            Fax: +61.2.9850.7433
Macquarie University   NSW    2109     
AUSTRALIA			     

--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.



More information about the General mailing list