title: More than one virtual host in Apache2 Ubuntu
body: <p>I have tried to configure a new virtual host in apache. I have copied the default. Updated the paths. The conf looks like this</p>
  
  <pre><code>    &lt;VirtualHost *:8081&gt;
          ServerAdmin webmaster@localhost
  
          DocumentRoot /home/ubuntu/video
          &lt;Directory /&gt;
                  Options FollowSymLinks
                  AllowOverride All
          &lt;/Directory&gt;
          &lt;Directory /home/ubuntu/video&gt;
                  Options Indexes FollowSymLinks MultiViews
                  AllowOverride All
                  Order allow,deny
                  allow from all
          &lt;/Directory&gt;
  
          ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
          &lt;Directory "/usr/lib/cgi-bin"&gt;
                  AllowOverride None
                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                  Order allow,deny
                  Allow from all
           &lt;/Directory&gt;
  
          ErrorLog /home/ubuntu/video/error.log
  
          # Possible values include: debug, info, notice, warn, error, crit,
          # alert, emerg.
          LogLevel warn
  
          CustomLog /home/ubuntu/video/access.log combined
  
      Alias /doc/ "/usr/share/doc/"
      &lt;Directory "/usr/share/doc/"&gt;
          Options Indexes MultiViews FollowSymLinks
          AllowOverride None
          Order deny,allow
          Deny from all
          Allow from 127.0.0.0/255.0.0.0 ::1/128
      &lt;/Directory&gt;
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>I ran the command </p>
  
  <pre><code>sudo a2ensite video
  </code></pre>
  
  <p>which gave messaage that virtual host successfully added and will run upon reload. But i am not able to access the same. I have checked the path <code>/home/ubuntu/video</code> where error.log, access.log files are also created. I am not able to find the solution as well as problem. I searched in the internet if anyone have same problem.</p>
  
  <p>The following blog post: <a href="http://brucewampler.wordpress.com/2009/02/28/adding-virtual-hosts-to-ubuntu-apache/" rel="nofollow">Adding virtual hosts to Ubuntu Apache</a>, says in its update the we cannot create more than one virtual host. I have already a virtual host installed. Does this mean 2nd virtual host cannot be configured in Ubuntu for apache?</p>