title: Mac OS Lion - Wildcard subdomain virtual host
body: <p>I am trying to get Wordpress 3.3.1 multisite (sub-domains) working in my localhost. However, it appears that I need to have wildcard subdomains configured for my Wordpress vhost. The idea is to have <strong>any_subdomain.my_wordpress.local</strong> to go to <strong>my_wordpress.local</strong>.</p>
  
  <p>How do I do this in Mac OS 10.7.3 with Apache 2.2.22?</p>
  
  <p>This is the virtual host set up in my http-vhosts.conf file for that local site:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      DocumentRoot "/Users/some_user/Sites/wordpress_mu"
      ServerName wordpress_mu
      ServerAlias *.wordpress_mu
      ServerAdmin some@email.com
  
  # Logging
      ErrorLog "logs/wordpress_mu.error_log.log"
      CustomLog "logs/wordpress_mu.access_log.log" combined
  
  &lt;Directory "/Users/some_user/Sites/wordpress_mu"&gt;
      RewriteEngine On
  
      # To allow permalink as specified by wordpress admin interface
      RewriteBase /
      RewriteRule ^index\.php$ - [L] 
      RewriteCond %{REQUEST_FILENAME} !-f 
      RewriteCond %{REQUEST_FILENAME} !-d 
      RewriteRule . /index.php [L] 
  
              Options FollowSymLinks MultiViews Includes ExecCGI
              AllowOverride All 
              Order allow,deny
              Allow from all 
      &lt;/Directory&gt;
  
      # Set valid directory pages
      DirectoryIndex index.html index.htm index.shtml index.php
  </code></pre>
  
  <p></p>
  
  <p>I have also added wordpress_mu into /etc/hosts.</p>
  
  <pre><code>127.0.0.1  wordpress_mu
  </code></pre>
  
  <p>Thank you in advance.</p>