Configuring Your Server:
Modify the /www/conf/httpd.conf file to follow the pattern that is already there for the other domain names, or follow the pattern given below, appending these lines to the end of the file, and replacing customer with your customers new domain name. (If you edit it on your local computer, be sure to use a unix-aware text wordprocessor, and transfer the file to/from the web in ASCII format . Also make sure there is a blank line at the end of the file.)
# Comments start with # # I love comments # point http://customer.com to subdirectory /customer/ <Host www.customer.com customer.com> ServerName customer.com # Add the server administrators E-mail address ServerAdmin webmaster@customer.com # What subdirectory are the files kept in? DocumentRoot /usr/local/etc/httpd/vhosts/customer # You can also store the new servers log files in # a separate file from the servers main logs, as follows... TransferLog logs/customer_access ErrorLog logs/customer_error RefererLog logs/customer_referer # Or you can trash any log file you don't wish to record # by sending the results to the null file. AgentLog /dev/null </Host>What is shown above is a typical configuration file, the minimum required configuration is something like.
<Host www.customer.com customer.com> ServerName www.customer.com ServerAdmin webmaster@customer.com DocumentRoot /usr/local/etc/httpd/vhosts/customer </Host>If there are differences between what is here, and what is inside the httpd.conf file, please follow the pattern found there.
To enable forwarding mail for webmaster@customer.com to your customers regular E-mail account, modify the /etc/virtmaps file. After modifying the /etc/virtmaps file, run the vnewvirtmaps command from the unix shell.
If your customer's directory name is longer than 8 characters, and you want to give them FTP access to the directory, modify the /etc/passwrd file.
LOFTHOUSE PUBLISHING |
![]() |
Questions or Comments?