title: How to set up a proxy location for all paths except some with apache2?
body: <p>I've got several webapps running on my webserver:</p>
  
  <ul>
  <li>SVN Repository Browser, accessible via <code>https://beta.mydomain.tld/svn/repos</code></li>
  <li>Trac instance, accesible via <code>https://beta.mydomain.tld/trac</code></li>
  <li>My own java web application, accessible via <code>http://beta.mydomain.tld/</code>, using a Proxy for the local Apache Tomcat on port 8080</li>
  </ul>
  
  <p>Please note that the first two are available via SSL, the third is not (yet). Now I need to make my web app available via https, but I want Trac and SVN Browser still to be accessible in their current location.</p>
  
  <p>I.e. I am trying to configure apache2 to proxy all requests not starting with <code>svn</code> or <code>trac</code> to Tomcat.</p>
  
  <p>For the existing SSL web apps, there's the following configuration</p>
  
  <pre><code>    &lt;Location /svn/repos&gt;
          DAV svn
          SVNParentPath /home/myuser/svn
          SVNListParentPath on
          AuthType Basic
          AuthName "Subversion repository"
          AuthUserFile /home/myuser/.htpasswd
          Require valid-user
      &lt;/Location&gt;
  
      &lt;Location /trac&gt;
          SetHandler mod_python
          PythonHandler trac.web.modpython_frontend
          PythonOption TracEnvParentDir /home/myuser/trac
          PythonOption TracUriRoot /trac
          AuthType Basic
          AuthName "Trac"
          AuthUserFile /home/myuser/.htpasswd
          Require valid-user
      &lt;/Location&gt;
  </code></pre>
  
  <p>I tried to add the following location, but it did not help anything...</p>
  
  <pre><code>    &lt;Location /&gt;
          ProxyPass           http://localhost:8080
          ProxyPassReverse    http://localhost:8080/
      &lt;/Location&gt;
  </code></pre>
  
  <p>For further information, here is the complete apache2 configuration regarding the SSL part (without any of my failed trials in it - I think it is default trac configuration):</p>
  
  <p></p>
  
  <pre><code>&lt;VirtualHost *:443&gt;
      ServerAdmin webmaster@localhost
      ServerName beta.mydomain.tld:443
  
      DocumentRoot /var/www/
      &lt;Directory /var/www/&gt;
              Options Indexes FollowSymLinks MultiViews
              AllowOverride None
              Order allow,deny
              allow from all
      &lt;/Directory&gt;
  
      ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
      &lt;Directory "/usr/lib/cgi-bin"&gt;
              AllowOverride None
              Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
              Order allow,deny
              Allow from all
      &lt;/Directory&gt;
  
      ErrorLog /var/log/apache2/error.log
  
      # Possible values include: debug, info, notice, warn, error, crit,
      # alert, emerg.
      LogLevel warn
  
      CustomLog /var/log/apache2/ssl_access.log combined
  
      Alias /doc/ "/usr/share/doc/"
      &lt;Directory "/usr/share/doc/"&gt;
              Options Indexes MultiViews FollowSymLinks
              AllowOverride None
              Order deny,allow
              Deny from all
              Allow from 127.0.0.0/255.0.0.0 ::1/128
      &lt;/Directory&gt;
  
      SSLEngine on
  
      SSLCertificateFile    /etc/ssl/certs/ssl.crt
      SSLCertificateKeyFile /etc/ssl/private/ssl.key
  
      BrowserMatch ".*MSIE.*" \
              nokeepalive ssl-unclean-shutdown \
              downgrade-1.0 force-response-1.0
  
      &lt;Location /svn/repos&gt;
          DAV svn
          SVNParentPath /home/myuser/svn
          SVNListParentPath on
          AuthType Basic
          AuthName "Subversion repository"
          AuthUserFile /home/myuser/.htpasswd
          Require valid-user
      &lt;/Location&gt;
  
      &lt;Location /trac&gt;
          SetHandler mod_python
          PythonHandler trac.web.modpython_frontend
          PythonOption TracEnvParentDir /home/myuser/trac
          PythonOption TracUriRoot /trac
          AuthType Basic
          AuthName "Trac"
          AuthUserFile /home/myuser/.htpasswd
          Require valid-user
      &lt;/Location&gt;
  </code></pre>
  
  <p></p>