title: Add a vhost in chef apache2-windows cookbook
body: <p>I'm pretty new to chef. I'm using it to provision a vagrant development environment using the <a href="https://github.com/chef-windows/apache2-windows" rel="nofollow">apache2-windows</a> cookbook, which inconveniently has very little by way of documentation. I have managed to get it to install, and even play nicely with <a href="https://github.com/opscode-cookbooks/php" rel="nofollow">opscodes php</a> cookbook, but I'm struggling to get it to set up a vhost.</p>
  
  <p>So far I have added the vhosts 'extra' to /attributes/default.rb like so:</p>
  
  <pre><code>default['apache']['windows']['extras'] = ["vhosts"]
  </code></pre>
  
  <p>That successfully adds a 'vhosts.d' directory to apache root, includes httpd-vhosts.conf in httpd.conf, and adds an entry to httpd-vhosts.conf which includes *.conf in the 'vhosts.d' directory. </p>
  
  <p>Unfortunately I can't quite figure out how to use the virtualhost resource provided with the recipe, which looks like it should be putting my vhosts into the 'vhosts.d' using the /templates/default/virtualhost.conf.erb template.</p>
  
  <p>I have added the following to /recipes/default.rb</p>
  
  <pre><code>virtualhost "mysite.localhost" do
    server_aliases ["www.mysite.localhost"]
    docroot "/vagrant"
    action :create
  end
  </code></pre>
  
  <p>but it fails, telling me 'No resource or method named 'virtualhost' for 'Chef::Recipe "default"'. </p>
  
  <p>What am I missing? Is there something else I need to do to allow me to use the virtualhost resource in my recipe?</p>