I would like to create a registration form which creates subdomains (yet on localhost), but I have got some problem. I know how to create subdomains, writing for example these in vhosts:
CustomLog "logs/access.log" common
You could try a rewriterule, which converts a subdomain into a folder.
For example, mystuff.localhost becomes localhost/mystuff