I have created some domain in /etc/hosts files
192.168.0.11 domain-11.com
192.168.0.12 domain-12.com
192.168.0.13 domian-13.com
and also created a files in /etc/apache2/site-avalaiable/ in respective machine like in machine 192.168.0.11 added a file domain-11.com my /etc/apache2/sites-available/domain-11.com files contains
<VirtualHost *:80>
ServerName domain-11.com
ServerAlias *.domain-11.com
DocumentRoot /home/user/public_html/domain/
<Directory /home/user/public_html/domain/>
Options Indexes FollowSymLinks MultiViews +Includes
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
I'm not able to access www.domain-11.com or any other subdomain.domain-11.com i want a wildcard subdomain here.