I'm pretty sure you're asking how to set up several virtual web hosts, not subdomains. If so, just configure those names in DNS to all point to your Apache server IP, then configure name-based virtual hosts in Apache to server the different names. Check the Apache vhost docs
here. That's for Apache 2.0, but there's a similar page for 1.3.