httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Arnold <carn...@electrichendrix.com>
Subject [users@httpd] Rewrite Rule
Date Wed, 24 Apr 2013 00:38:56 GMT
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

This takes me to the root of the rds server, hence the redirectmatch which produces a 404.
I have also written another ssl virtual host but apache does not start and complains about
443 overlap. How do i accomplish users landing at the rds server when typing https://apps.domain.tld?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message