title: How to setup reverse proxy into docker container with local apache
body: <p>I have a apache 2.4.18 and a local nagios installation running successfully on an Ubuntu 16.04 Server with SSL certificates.
  There is also a docker running a GitLab image successfully with SSL.
  Now I want to run a OpenProject docker image with SSL and need to setup the apache to a "Reverse Proxy", but have no success with that.</p>
  
  <p>I can access Nagios via <a href="https://devel.mydomain.com/nagios" rel="nofollow noreferrer">https://devel.mydomain.com/nagios</a> and Gitlab with <a href="https://devel.mydomain.com:4443/" rel="nofollow noreferrer">https://devel.mydomain.com:4443/</a> (configured in docker run).</p>
  
  <p>I start the OpenProject container with:</p>
  
  <pre><code>sudo docker run -d \
  -p 8808:80 --name openproject \
  -e SECRET_KEY_BASE=secret \
  -v /var/lib/openproject/pgdata:/var/openproject/pgdata \
  -v /var/lib/openproject/static:/var/openproject/assets \
  openproject/community:8
  </code></pre>
  
  <p>I can access the <a href="http://localhost:8808" rel="nofollow noreferrer">http://localhost:8808</a> via wget and get the index.html of OpenProject.</p>
  
  <p>My apache openproject.conf in /etc/apache/site-available file looks like:</p>
  
  <pre><code>&lt;VirtualHost *:443&gt;
      ServerName devel.mydomain.com
  
      SSLProtocol all -SSLv2 -SSLv3
      SSLHonorCipherOrder On
      SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS
  
      SSLCertificateFile       /path/to/ssl/ssl.crt
      SSLCertificateKeyFile    /path/to/ssl/ssl.key
  
      ErrorLog ${APACHE_LOG_DIR}/proxyssl_error.log
      CustomLog ${APACHE_LOG_DIR}/proxyaccess.log combined
  
      ProxyPass / http://localhost:8808
      ProxyPassReverse / http://localhost:8808
  
      ProxyRequests off
      ProxyPreserveHost On
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The config is enabled (a2ensite openproject.conf) and apache restart without error. </p>
  
  <p>But I cannot access OpenProject with <a href="https://devel.mydomain.com" rel="nofollow noreferrer">https://devel.mydomain.com</a>, I only get the Apache default web page.</p>
  
  <p>I try to use a another port, because a ... is already defined in default-ssl.conf</p>
  
  <pre><code>&lt;VirtualHost *:4438&gt;
  :
  </code></pre>
  
  <p>But <a href="https://devel.mydomain.com:4438" rel="nofollow noreferrer">https://devel.mydomain.com:4438</a> response a connection error. The ufw-firewall is configured for allow access from Anywhere.</p>
  
  <p>What detail I missed? 
  Which file I should edit too?
  How is the correct syntax for the domain in the browser, when alternative port is used?</p>
  
  <p>Thanks in advance for help.</p>
  
  <p>PS: Any correction in the text is welcome but unhelpful. I do not want to improve my language skills, but solve my problem. If something is not understood, please point it out. Then I try to explain it better. Thank you.</p>