title: Setting timeout for all the ProxyPass mappings in Apache Server mod_proxy directive
body: <p><strong>What I have and works:</strong></p>
  
  <p>I'm using <em>Apache HTTPD 2.2</em> for proxy requests. I have multiple <em>ProxyPass</em> mappings:</p>
  
  <pre><code>ProxyRequests On 
  &lt;Proxy *&gt;
  AddDefaultCharset off
      Order deny,allow
      Allow from all
  &lt;/Proxy&gt;
  ProxyPreserveHost Off
  
  ProxyPass /a http://some_ip/
  ProxyPassReverse /a http://some_ip/
  
  ProxyPass /b http://some_other_ip/
  ProxyPassReverse /b http://some_other_ip/
  
  ...
  </code></pre>
  
  <p>This works well.</p>
  
  <p><strong>What I want:</strong></p>
  
  <p>Some of my requests are taking longer, so they timed out giving me a <strong><em>Proxy Error - Reason: Error reading from remote server</em></strong>. </p>
  
  <p>I want to set <code>timeout</code> for all of my requests. Can I do this without having to add <code>timeout=... KeepAlive=On</code> for every <code>ProxyPass</code> mapping? </p>
  
  <p>I currently have something like:</p>
  
  <pre><code>ProxyPass /a http://some_ip/ timeout=1200 KeepAlive=On
  ProxyPassReverse /a http://some_ip/
  
  ProxyPass /b http://some_other_ip/ timeout=1200 KeepAlive=On
  ProxyPassReverse /b http://some_other_ip/
  
  ... and i do this for all my ProxyPass mappings
  </code></pre>
  
  <p>Can I tell Apache in some way to add <code>timeout</code> and <code>KeepAlive</code> parameters for all the mappings? Thanks in advance.</p>