Do you mean that you want to setup virtual hosts in Apache?
Which version of Apache are you running? The httpd.conf syntax has evolved quite a bit -- even between 2.1 and 2.2!
The easiest way to learn about setting up virtual hosts is to read the comments in the default httpd.conf file. Here's an excerpt:
Code:
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /www/docs/dummy-host.example.com
# ServerName dummy-host.example.com
# ErrorLog /var/log/dummy-host.example.com-error_log
# CustomLog /var/log/dummy-host.example.com-access_log common
#</VirtualHost>
More comprehensive documentation can be found in the
Apache Virtual Host documentation.