I must produce a registration form which produces subdomains (yet on localhost), however i have some problem. I understand how to produce subdomains, writing for instance these in vhosts:

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.hleclerc-PC.ingenidev
    DocumentRoot "C:/wamp/www/something/"
    ServerName localhost
    ServerAlias something.localhost
    ErrorLog "logs/error.log"
    CustomLog "logs/access.log" common

And set this line in hosts:              something.localhost

It's working, but things i want is the fact that after i register a brand new subdomain (for instance: other), when I attempt to spread out other.localhost, it opens the required folder (../www/other/). I attempted it in vhosts with "ServerName *.localhost", "ServerName localhost", "ServerAlias *.localhost", "ServerAlias localhost", as well as in hosts "127...1 *.localhost" with all the permutation of those, but neither of those labored for me personally. I've thinked about this, that on registration I put a brand new block in vhosts, using the optimal data, however i don't believe it is extremely safe/achievable/or the easiest method to do.

Hope someone might help me!

Thanks ahead of time!

Why not consider a rewriterule, which converts a subdomain right into a folder.

For instance, mystuff.localhost becomes localhost/mystuff

otherthing.localhost/some/dir/here becomes localhost/otherthing/some/dir/here

try adding another domain in serveralias:

ServerAlias something.localhost other.localhost