title: HTTPS Redirect URL with proxy reverse
body: <p>I've a apache proxy reverse in front of a tomcat webapps with this vhost configuration</p>
  
  <p>I need to redirect the http or https base url to a https stattics url like this :</p>
  
  <p>Redirect <code>http:/ /xxx.domaine.tld</code> TO <code>https:/ /xxx.domaine.tld/JOrgInet/JORGServlet?FNAME=jorgentry.htt&amp;P=LOCATION~FRA;DHTML~1;APPLI~ORGCHART;</code></p>
  
  <p>and</p>
  
  <p>Redirect <code>https:/ /xxx.domaine.tld</code> TO <code>https:/ /xxx.domaine.tld/JOrgInet/JORGServlet?
  FNAME=jorgentry.htt&amp;P=LOCATION~FRA;DHTML~1;APPLI~ORGCHART;</code></p>
  
  <p>Here is the vhost configuration file</p>
  
  <pre><code>&lt;Virtualhost *:80&gt;
      ServerName org.domaine.tld
      Redirect / https://org.domaine.tld/JOrgInet/JORGServlet?FNAME=jorgentry.htt&amp;P=LOCATION~FRA;DHTML~1;APPLI~ORGCHART;
  &lt;/Virtualhost&gt;
  
  &lt;VirtualHost *:443&gt;
  
     ServerName org.domaine.tld:443
     ErrorLog /var/log/apache2/domaine.tld.error.log
     CustomLog /var/log/apache2/domaine.tld.log combined
  
     LogLevel warn
  
     SSLProxyEngine on
     SSLCACertificateFile /etc/apache2/certs/gs_root.pem
     SSLCertificateChainFile /etc/apache2/certs/intermediate.pem
     SSLCertificateFile /etc/apache2/certs/gscert.pem
     SSLCertificateKeyFile /etc/apache2/certs/gscert.key
  
     &lt;Location /&gt;
          AuthType Basic
          AuthBasicProvider ldap
          AuthName "Login LDAP SERVER"
          AuthLDAPURL "ldap://xxx.xxx.xxx.xxx:389/o=XXXXXXXXXXX?uid"
          Require valid-user
          AuthLDAPRemoteUserAttribute uid
          RewriteEngine On
          RewriteCond %{LA-U:REMOTE_USER} (.+)
          RewriteRule .* - [E=RU:%1]       
          RequestHeader set REMOTE_USER %{RU}e
     &lt;/Location&gt;
  
     &lt;IfModule mod_cache.c&gt;
        &lt;IfModule mod_disk_cache.c&gt;
           CacheDefaultExpire 3600
           CacheEnable disk /
           CacheRoot "/var/cache/apache2"
           CacheDirLevels 2
           CacheDirLength 1
           CacheMaxFileSize 1000000
           CacheMinFileSize 1
           CacheIgnoreCacheControl On
           CacheIgnoreNoLastMod On
           CacheIgnoreQueryString Off
           CacheIgnoreHeaders None
           CacheLastModifiedFactor 0.1
           CacheDefaultExpire 3600
           CacheMaxExpire 86400
           CacheStoreNoStore On
           CacheStorePrivate On
        &lt;/IfModule&gt;
     &lt;/IfModule&gt;
  
     ProxyPass / ajp://xxx.xxx.xxx.xxx:8009/
     ProxyPassReverse / https://org.domaine.tld/
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>when i acces to the base URL in http it's ok but how to redirect to the complex URL when I access with whith the https base URL...</p>
  
  <h2>Thanks in advance.</h2>
  
  <p>EB</p>