title: How to point HostGator domain to EC2 AWS
body: <p>We have an existing domain name </p>
  
  <blockquote>
    <p>(ex. webdev.com)</p>
  </blockquote>
  
  <p>located in hostgator and we have a server in AWS. We wanted to use the domain name that we bought from hostgator</p>
  
  <blockquote>
    <p>(webdev.com)</p>
  </blockquote>
  
  <p>in our AWS server.</p>
  
  <p>What we did was, in hostgator we created a DNS (project1.webdev.com) and the address is pointing to our AWS server(ex 150.12.1.0). In our AWS, we deploy the project1 under port 4000.</p>
  
  <p>Now if we access the </p>
  
  <blockquote>
    <p>project1.webdev.com</p>
  </blockquote>
  
  <p>we end up to the default apache page. How could we route it to our port 4000 so that everytime we access project1.webdev.com it pointed to our </p>
  
  <blockquote>
    <p>150.12.1.0:4000</p>
  </blockquote>
  
  <p>project.</p>
  
  <p>here is our virtual host config:</p>
  
  <pre><code>&lt;VirtualHost *:4000&gt;
  ServerName project1.webdev.com
  ServerAdmin webmaster@dummy-host.example.com
  DocumentRoot "/var/www/html/project1/web"
  
  &lt;Directory "/var/www/html/project1/web"&gt;
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
      &lt;/Directory&gt;
  
  ErrorLog ${APACHE_LOG_DIR}/4000-error_log
  CustomLog ${APACHE_LOG_DIR}/4000-access_log common
  </code></pre>
  
  <p></p>
  
  <p>We have looked for several information but we did not find any possible solution. Looking forward for your help.</p>
  
  <p>Thanks</p>