title: What ServerName is given for AWS while creating vitual host?
body: <p>What <code>ServerName</code> is to be declared in <code>VirtualHost</code> in Amazon Web Service. I am defining</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  DocumentRoot "/opt/bitnami/projects/fortis_django"
  ServerName ec2-122-248-220-105.ap-southeast-1.compute.amazonaws.com/fortis
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
  DocumentRoot "/opt/bitnami/projects/myfood"
  ServerName ec2-122-248-220-105.ap-southeast-1.compute.amazonaws.com/myfood
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>also tried</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  DocumentRoot "/opt/bitnami/projects/fortis_django"
  ServerName localhost/fortis
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost *:80&gt;
  DocumentRoot "/opt/bitnami/projects/myfood"
  ServerName localhost/fortis
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>After restarting Apache gives error</p>
  
  <blockquote>
    <p>httpd: Couldn't determine server's fully qualified domain using 127.0.0.1 for ServerName </p>
  </blockquote>
  
  <p>name <code>ServerName</code> by default it is given <code>ServerName localhost:80</code> i made it comment.</p>