I want to redirect multiple subdomain to same address. Let's say I want www.sitename.com and sitename.com to redirect same address.
Do I have to say;
<VirtualHost www.sitename.com:81>
.
.
.
</VirtualHost>
<VirtualHost sitename.com:81>
.
.
.
</VirtualHost>
or is there a simple solution.
Yes, If you wish to use multiple addresses like subdomains to the same location you can do this.
It's part of name based virtual host.
http://httpd.apache.org/docs/2.2/vhosts/name-based.html