title: This request asked for "/" on host "example.com", but no site is configured which can serve this request
body: <p>I am using Apache/2.4.7 to host a server. I am hosting phabricator on it.
  Let us say that the ip is x.x.x.x and the domain name pointing to the ip is example.com.</p>
  
  <p>Following are the contents of </p>
  
  <blockquote>
    <p>/etc/apache2/sites-enabled/000-default.conf</p>
  </blockquote>
  
  <pre><code>&lt;VirtualHost *:80&gt;
           ServerName http://x.x.x.x/
           DocumentRoot /home/ubuntu/phabricator/phabricator/webroot
           RewriteEngine on
           RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
           RewriteRule ^/favicon.ico   -                       [L,QSA]
           RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]
          &lt;Directory /home/ubuntu/phabricator/phabricator/webroot&gt;
                  Options Indexes FollowSymLinks Includes ExecCGI
                  AllowOverride None
                  Require all granted
          &lt;/Directory&gt;
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  
  
  &lt;VirtualHost *:80&gt;
           ServerName http://example.com
           ServerAlias www.example.com
           DocumentRoot /home/ubuntu/phabricator/phabricator/webroot
           RewriteEngine on
           RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
           RewriteRule ^/favicon.ico   -                       [L,QSA]
           RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]
  
  
          &lt;Directory /home/ubuntu/phabricator/phabricator/webroot&gt;
                  Options Indexes FollowSymLinks Includes ExecCGI
                  AllowOverride None
                  Require all granted
          &lt;/Directory&gt;
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>So, if I enter the ip, i.e., x.x.x.x in the address bar of the browser, phabricator opens up nice and fine. But instead if I use the domain name: example.com,</p>
  
  <p>it throws up the error:</p>
  
  <pre><code>This request asked for "/" on host "placire.com", but no site is configured which can serve this request.
  </code></pre>
  
  <p>What mistake am I making? How do I go on about resolving it?</p>
  
  <p>Thank you.</p>
  
  <p>PS: I used the follwoing guide for configuring Phabricator:
  <a href="https://secure.phabricator.com/book/phabricator/article/configuration_guide/" rel="noreferrer">https://secure.phabricator.com/book/phabricator/article/configuration_guide/</a></p>
  
  <p>PPS: Also, I'm pretty sure that example.com points correctly to x.x.x.x because using the following conf file , when I enter example.com in the address bar I see the apache default page:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
           ServerName http://x.x.x.x
           DocumentRoot /home/ubuntu/phabricator/phabricator/webroot
           RewriteEngine on
           RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
           RewriteRule ^/favicon.ico   -                       [L,QSA]
           RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]
  
          &lt;Directory /home/ubuntu/phabricator/phabricator/webroot&gt;
                  Options Indexes FollowSymLinks Includes ExecCGI
                  AllowOverride None
                  Require all granted
          &lt;/Directory&gt;
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  &lt;VirtualHost *:80&gt;
           ServerName example.com
           DocumentRoot /var/www/html/
  
          ErrorLog ${APACHE_LOG_DIR}/error.log
          CustomLog ${APACHE_LOG_DIR}/access.log combined
  &lt;/VirtualHost&gt;
  </code></pre>