title: Is it possible to use "%{HTTP_HOST}" in ProxyPass?
body: <p>I'm trying to implement a transparent proxy using apache2 and mod_proxy that for now - doesn't do anything. just forwards the traffic to the correct "host".</p>
  
  <p>I don't want it to be host-dependant - but dynamic so it'll work for all hosts.
  I tried to do this:</p>
  
  <pre><code>RewriteEngine on
  RewriteLogLevel 5
  RewriteLog "/var/log/apache2/rewrite.log"
  RewriteRule ^(.*)$ $1
  ProxyPass / http://$1
  </code></pre>
  
  <p>I also tried several other approaches (none worked).
  Is there any way I can access the "host" from the header and use it in the ProxyPass directive?</p>
  
  <p>In nginx I would use $host, $remote_addr, etc.. any way to replace that on apache?</p>
  
  <p>What I need is to be able to access %{HTTP_HOST}, %{REQUEST_URI} and %{SERVER_PORT} inside the ProxyPass command.</p>