Whole document tree 4. How Do I set it up?4.1. Create the New AccountCreate a regular Linux account for the virtual customer with home directory and mail. 4.2. NCSA 1.5 or Apache Config FilesVirtual Host implementations are still changing. A few patches exist to support Virtual Host Check the server's release notes for more details. NCSA 1.5 or Apache now include the Virtual patches, and I have been told that Spinner supports virtual hosts. One virtual patch supports the following srm.conf syntax, however the second NCSA 1.5 method of defining a Virtual host allows for greater flexibility
NCSA and Apache support the following httpd.conf syntax:
4.3. Configuring the interfaceOnce the IPalias patches have been installed add the following to your /etc/rc.d/rc.local on your local web server.
4.4. Registering with InternicIf you are setting up a new domain or change a current domain, you must register the domain with Internic. The template can be found at ftp://rs.internic.net/templates/domain-template.txt 4.5. Configuring NamedNamed will need to be configured so that your virtual domain will be visible to the outside world. I don't claim to be an expert on DNS. Suggestions always welcome. 4.5.1. Example /etc/named.boot
4.5.2. Example /etc/named.data/db.domain1.com
4.5.3. Example /etc/named.data/db.xxx.xxx.xxxYou should already have a db.xxx.xxx.xxx for your current site update it to contain the new virtual domains for reverse lookups
4.5.4. Restart namedOnce you've finished editing config files, you will need to restart the named daemon. 4.6. Virtual MailYour virtual customers will more than likely want the ability to have mail that is sent to their domain forwarded to another domain. A few sendmail.cf changes will do the trick. After several months of trying different sendmail changes, this is the 1st method that I found that works and requires only one sendmail.cf change for each new virtual site. 4.6.1. Sendmail Configuration
4.7. Virtual FTPCurrently, I have not been able to get Virtual FTP to work. A few patches exist, and I'm sure a working patch exist. We just create a working directory /home/ftp/business/domain1, but a true Virtual FTP would be nice. If anyone would like to contribute a solution, I would be more than happy to add it here. Arnt Gulbrandsen has rewritten ftpd and has included support for independent FTP services The Troll Tech FTP Daemon |