title: wild card subdomain apache+tomcat
body: <p>I have my struts project hosted on apache and tomcat server.I need a wildcard subdomain on my server.
  I write the following code on Apaches virtualhost .conf file</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@dummy-host2.example.com
      DocumentRoot "/var/www/htdocs/projects/myprj"
      ServerAlias *.asd.mydomain.com
      ServerName asd.mydomain.com
      DirectoryIndex index.jsp
  </code></pre>
  
  <p>I cahnged my tomcat server.xml docbase to /var/www/htdocs/projects</p>
  
  <p>But my subdomains are not working.when i take 123.asd.mydomain.com , it loads tomcats home page.</p>
  
  <p>Anybody knows what is the issue,If i did anything more?want to write anything on .htaccess</p>
  
  <p>Thanks,
  Shihab.</p>