title: Apache2 virtual host not working
body: <p>After few days of trying to setup apache2 virtual hosts on my localhost I am seriously loosing my patience. Can you guys help me? Everything seems ok, but when I am trying to access local.droidbb.com in my browser I am getting response of </p>
  
  <blockquote>
    <blockquote>
      <p>Unable to load page.  Problem occurred while loading the URL
      <a href="http://local.droidbb.com/" rel="nofollow">http://local.droidbb.com/</a>. Cannot connect to destination.</p>
    </blockquote>
  </blockquote>
  
  <p>Here are all related files (at least I think so).</p>
  
  <p><strong>etc/hosts</strong>  file</p>
  
  <pre><code>#127.0.0.1  ingress localhost.localdomain   localhost
  127.0.0.1   local.droidbb.com
  #127.0.1.1  debian.resnet.gre.ac.uk debian
  #127.0.1.1  debian.local.droidbb.com debian
  
  # The following lines are desirable for IPv6 capable hosts
  ::1     ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  </code></pre>
  
  <p><strong>etc/apache2/ports.conf</strong> file</p>
  
  <pre><code># If you just change the port or add more ports here, you will likely also
  # have to change the VirtualHost statement in
  # /etc/apache2/sites-enabled/000-default
  # This is also true if you have upgraded from before 2.2.9-3 (i.e. from
  # Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and
  # README.Debian.gz
  
  NameVirtualHost *
  Listen 80
  
  &lt;IfModule mod_ssl.c&gt;
      # If you add NameVirtualHost *:443 here, you will also have to change
      # the VirtualHost statement in /etc/apache2/sites-available/default-ssl
      # to &lt;VirtualHost *:443&gt;
      # Server Name Indication for SSL named virtual hosts is currently not
      # supported by MSIE on Windows XP.
      Listen 443
  &lt;/IfModule&gt;
  
  &lt;IfModule mod_gnutls.c&gt;
      Listen 443
  &lt;/IfModule&gt;
  </code></pre>
  
  <p><strong>etc/apache2/sites-available/local.droidbb.com</strong> file</p>
  
  <pre><code>&lt;VirtualHost *&gt;
  
      ServerAdmin webmaster@localhost
  
      ServerName local.droidbb.com
  
  
  
      DocumentRoot /var/www/local.droidbb.com/public_html/
  
      &lt;Directory /&gt;
  
              Options FollowSymLinks Includes -Indexes
  
              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 ${APACHE_LOG_DIR}/error.log
  
  
  
      # Possible values include: debug, info, notice, warn, error, crit,
  
      # alert, emerg.
  
      LogLevel warn
  
  
  
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Where is the problem? Oh and I should mentioned that I am running Linux Debian x64 on virtualbox.</p>