This explains how to use Namebased Virtualhosts on Apache 1.x. The following will also keep seperate logs for each Virtualhost, if you do not want this and you want all domains logs to be combined then remove the log entries in the virtualhost directives.
Then at the bottom (This makes it easier to find in the future) of the httpd.conf, add the following lines.. The lines starting with a # are comments and can be removed.
<VirtualHost *:80> UseCanonicalName off # Your domain name. ServerName domain.co.uk # Any variation of your domain name. ServerAlias www.domain.co.uk # Email address of server admin ServerAdmin firstname.lastname@example.org # Location of the sites files DocumentRoot /www/domain # Location of your cgi-bin ScriptAlias /cgi-bin/ "C:/www/domain/cgi-bin/" # Location of the sites log files ErrorLog logs/domain/error.log CustomLog logs/domain/access.log common CustomLog logs/domain/referer.log referer CustomLog logs/domain/agent.log agent # Add email to server generated files ServerSignature EMail </VirtualHost>