title: Jenkins behind an Apache with mod_proxy
body: <p>I followed the instructions and the reverse proxy with Apache in front of Jenkins does not work. I have set up an Apache virtualhost config that proxies to Jenkins:</p>
  
  <h1>Apache virtualhost</h1>
  
  <pre><code>&lt;VirtualHost *:8084&gt;
      ServerAdmin emil@my_email.com
      ProxyRequests     Off
      ProxyPass         /jenkins  http://localhost:8084/jenkins
      ProxyPassReverse  /jenkins  http://localhost:8084/jenkins
      &lt;Proxy http://localhost:8084/jenkins*&gt;
        Order allow,deny
        Allow from all
       &lt;/Proxy&gt;
      ProxyPreserveHost on
   &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>The virtualhost is activated, no errors.</p>
  
  <p>You can see my changes to /etc/default/jenkins here:</p>
  
  <pre><code>HTTP_PORT=8084
  ...
  PREFIX=/jenkins
  ...
  JENKINS_ARGS="--httpListenAddress=127.0.0.1 --webroot=/var/cache/jenkins/war --prefix=$PREFIX --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"
  </code></pre>
  
  <p>I am tailing the apache logs and jenkins, but when I try to access http://:8084/jenkins, I get nothing, no page. When I start Jenkins without --httpListenAddress=127.0.0.1, I open http://:8084/jenkins successfully, but this is directly accessing Jenkins, does not pass through Apache.</p>
  
  <p>Any ideas what might be the problem in my reverse proxy config? It is pretty standard.</p>
  
  <p>Thanks,</p>
  
  <p>Emil</p>