forexample i have a domain abc.com , i set up *.abc.com to point to a folder in my site. then when i enter any subdomain name like fun.abc.com,lala.abc.com and more , will automatically go to the folder
you will need not only *.abc.com ServerName and ServerAlias in httpd.conf but also you will need *.abc.com in zone files.
But, this type of subdomain creating and using is not compatible with Cpanel, Directadmin, Hsphere control panel software and not supported. But, you may try realize your request with mod_rewrite rules.
Rustelekom LLC Dedicated server since 2002, RIPE NCC member, LIR, AS51168
I'm (fairly) sure that direct admin supports subdomain names.
Personally, for wildcard subdomains I use HTTP://ZONEEDIT.COM, unfortunately you would need direct access to the httpd.conf to make this work properly. But zonedit.com provide the DNS services for free.