title: Redirect to a port number depending on the URL
body: <p>My server has 3 websites : </p>
  
  <ul>
  <li>Gitlab running with Omnibus on port 80  </li>
  <li>React.js application in a Docker on port 3001</li>
  <li>Jorani (php application) on Apache on port 8008</li>
  </ul>
  
  <p>Since DNS can't handle the port number, how may I redirect to a port depending on the URL the user gives, for example : </p>
  
  <ul>
  <li><a href="http://gitlab.domain.com" rel="nofollow noreferrer">http://gitlab.domain.com</a> => port 80</li>
  <li><a href="http://react.domain.com" rel="nofollow noreferrer">http://react.domain.com</a> => port 3001</li>
  <li><a href="http://jorani.domain.com" rel="nofollow noreferrer">http://jorani.domain.com</a> => port 8008</li>
  </ul>
  
  <p>I saw some post about Proxy or reverse proxy but i'm not sure if it's the good way to proceed</p>