How do you mean, addon domains. You might be talking about virtual hosts. There are two ways, name based virtial hosts and ip based virtual hosts. If you don't use https (not likely at home), you can use name based virtual hosts. look up the below section in httpd.conf and uncomment it (don't uncomment the comments).
Code:
#NameVirtualHost *:80
#
# 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 logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
Replace the red line with something that makes sense like
Code:
<VirtualHost website1:80>
Further you need to change the documentroot and the servername.
You can now copy the part from the red line onwards and change some data that applies to the second website. For this second part, change the red line to
Code:
<VirtualHost website2:80>
You also need a different documentroot and servername.
OK, next step is that the connecting computers can resolve the names website1 and website2. Easiest is probably to add them to the file /etc/hosts. They may all refer to the same ip-address.
Below an example if you only need to access them from your local PC
Code:
127.0.0.1 localhost
127.0.0.1 website1
127.0.0.1 website2
You should now be able access the websites in a browser by using
http://website1 and
http://website2
Haven't tested this, so I hope it's correct
PS IP based is similar, but you need to setup multiple IP addresses for your server and you should not disable the first line in the first code block in this post.
Further you need to specify IP addresses instead of names.