title: nginx/apache redirection for output port on docker container on vps
body: <p>I'm a linux noob in admin of docker container using apache or nginx on VPS.</p>
  
  <p>I use an OVH classic Vps (4go ram, 25Go SSD) with already installed image of ubuntu 15.04 + docker.</p>
  
  <p>Install of docker container is really easy, and in my case i install without problem the image <a href="https://github.com/sharelatex/sharelatex-docker-image">sharelatex</a>.</p>
  
  <pre><code>docker run -d \
    -v ~/sharelatex_data:/var/lib/sharelatex \
    -p 5000:80 \
    --name=sharelatex \
    sharelatex/sharelatex
  </code></pre>
  
  <p>Site is accessible on IP of the VPS at <code>http://51.255.47.40:5000</code> port show that site work without any problem.</p>
  
  <p>I have already a sub domain (tools.sebastienreycoyrehourcq.fr) configurated to go on the server ip vps (<code>51.255.47.40</code> routed to External in webfaction panel ), not working, don't understand why.</p>
  
  <p>I install an apache server on <code>51.255.47.40</code>, but i suppose the best option is probably to install a docker image of nginx or apache ? Can you advice me on this point ? And after that, how can i redirect to <code>5000</code> port of the docker image on a classic 80 port of apache or nginx linked to my subdomain ?</p>