diff options
author | Rob Crittenden <rcrit@ipa.greyoak.com> | 2008-08-20 15:33:45 -0400 |
---|---|---|
committer | Rob Crittenden <rcrit@ipa.greyoak.com> | 2008-08-21 09:48:48 -0400 |
commit | ff82c4c1e56f14b225485da09722c7f709480ab9 (patch) | |
tree | ff8696976b6b0e0fdb8fe24c3c5363ef221705cf | |
parent | e9bde984e0aa1f1b03dee5f916daed783a64c025 (diff) | |
download | freeipa-ff82c4c1e56f14b225485da09722c7f709480ab9.tar.gz freeipa-ff82c4c1e56f14b225485da09722c7f709480ab9.tar.xz freeipa-ff82c4c1e56f14b225485da09722c7f709480ab9.zip |
Limit the mod_rewrite rules to just /ipa
459209
-rw-r--r-- | ipa-server/xmlrpc-server/ipa-rewrite.conf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ipa-server/xmlrpc-server/ipa-rewrite.conf b/ipa-server/xmlrpc-server/ipa-rewrite.conf index fc7ce6806..ef494300c 100644 --- a/ipa-server/xmlrpc-server/ipa-rewrite.conf +++ b/ipa-server/xmlrpc-server/ipa-rewrite.conf @@ -1,4 +1,4 @@ -# VERSION 1 - DO NOT REMOVE THIS LINE +# VERSION 2 - DO NOT REMOVE THIS LINE RewriteEngine on @@ -10,10 +10,10 @@ RewriteRule ^/$$ https://$FQDN/ipa/ui [L,NC,R=301] # Redirect to the fully-qualified hostname. Not redirecting to secure # port so configuration files can be retrieved without requiring SSL. RewriteCond %{HTTP_HOST} !^$FQDN$$ [NC] -RewriteRule ^/(.*) http://$FQDN/$$1 [L,R=301] +RewriteRule ^/ipa/(.*) http://$FQDN/ipa/$$1 [L,R=301] # Redirect to the secure port if not displaying an error or retrieving # configuration. RewriteCond %{SERVER_PORT} !^443$$ -RewriteCond %{REQUEST_URI} !^/(errors|config|favicon.ico) -RewriteRule ^/(.*) https://$FQDN/$$1 [L,R=301,NC] +RewriteCond %{REQUEST_URI} !^/ipa/(errors|config) +RewriteRule ^/ipa/(.*) https://$FQDN/ipa/$$1 [L,R=301,NC] |