I am trying to setup virtual domain in my localhost dynamically. i have setup in httpd-vhost.conf and its working fine.
then i setup in hosts file which present in C:\Windows\System32\Drivers\etc
my requirement is i want to setup my domain like
1.domian.com, 2.domain.com, 3.domain.com, 4.domain.com,...., n.domain.com
i had set up in host file
127.0.0.1 domain
127.0.0.1 1.domain.com
127.0.0.1 2.domain.com
127.0.0.1 3.domain.com
its working fine if i browse 1.domain.com, 2.domain.com and 3.domain.com
setting n subdomain can be really complicated. It's indeed critical
is there an easy way to add n subdomain in host file?