On Apr 24, 2013, at 2:00 PM, "Chris Arnold" <carn...@electrichendrix.com> wrote:
> On Apr 23, 2013, at 8:39 PM, "Chris Arnold" wrote: > > > Apache 2.12.x on SLES11 SP2. We have a RDS server behind an apache server > > using proxypass. We need users to get to the RDS server using > > https://apps.domain.tld. The apache server should catch this request and > > send/rewrite to > > https://apps.domain.tld/rds/something/something/login.whatever. We have a > > ssl virtual host and in this virtual host i have a rewrite statement: > > > > RewriteEngine On > > RewriteCond %{HTTP_HOST} ^apps\. > > RewriteCond %{HTTPS} on > > RewriteRule ^/(.*) https://192.168.123.7/$1 [P] > > #RedirectMatch ^/$ /rds/something/something/login.whatever Rewriteengine on Rewritecond %{https_host} ^apps\. Rewritecond %{https} on Rewriterule ^/(.*) https://192.168.123.7/folder$1 [P] Results in http://apps.domain.tld/folder/folder In order to get the login page the URL should be http://apps.domain.tld/folder/folder/folder/login.whatever How do I rewriterule to /folder/folder/folder/login.whatever?