title: Route two different URL to the same ec2 instance with two php applications
body: <p>I have two url domain, abc.com and xyz.com. Both domain were setted to go to same ec2 instance at Amazon. I have two php application on this server, one deployed at /var/www/html and  the other one at /var/www/html/xyz. </p>
  
  <p>My issue is how change the httpd.conf config file to redirect all user that access by abc.com to the root site and all traffic by xyz.com go to /var/www/html/xyz</p>
  
  <p>I tried do it adding the following code.</p>
  
  <pre><code>&lt;VirtualHost xyz.com.br:80&gt;
      ServerAdmin email@gmail.com
      DocumentRoot "/var/www/html/xyz"
      ServerName xyz.com.br
      Errorlog "logs/error_log"
      CustomLog "logs/access_log" common
      Alias /wedding "/var/www/html/xyz"
  &lt;/VirtualHost&gt;
  
  &lt;VirtualHost abc.com.br:80&gt;
      ServerAdmin email@gmail.com
      DocumentRoot "/var/www/html"
      ServerName abc.com.br
      Errorlog "logs/error_log"
      CustomLog "logs/access_log" common
  &lt;/VirtualHost&gt;
  </code></pre>