From 22056206641f7b8f2751f9d4f2200e7c5030e084 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek
Date: Fri, 29 Oct 2010 09:38:17 -0400
Subject: Rewrite the migration page using WSGI
---
install/conf/ipa-rewrite.conf | 3 +--
install/conf/ipa.conf | 4 ++--
install/migration/index.html | 2 +-
install/migration/migration.py | 45 ++++++++++++++++++++++++++++++++++--------
4 files changed, 41 insertions(+), 13 deletions(-)
(limited to 'install')
diff --git a/install/conf/ipa-rewrite.conf b/install/conf/ipa-rewrite.conf
index ef494300..f6bc9d01 100644
--- a/install/conf/ipa-rewrite.conf
+++ b/install/conf/ipa-rewrite.conf
@@ -3,8 +3,7 @@
RewriteEngine on
# By default forward all requests to /ipa. If you don't want IPA
-# to be the default on your web server comment this line out. You will
-# need to modify ipa_webgui.cfg as well.
+# to be the default on your web server comment this line out.
RewriteRule ^/$$ https://$FQDN/ipa/ui [L,NC,R=301]
# Redirect to the fully-qualified hostname. Not redirecting to secure
diff --git a/install/conf/ipa.conf b/install/conf/ipa.conf
index bcf31cee..d03bc3fe 100644
--- a/install/conf/ipa.conf
+++ b/install/conf/ipa.conf
@@ -116,8 +116,8 @@ Alias /ipa/migration "/usr/share/ipa/migration"
AllowOverride None
Satisfy Any
Allow from all
- AddHandler mod_python .py
- PythonHandler mod_python.publisher
+ Options ExecCGI
+ AddHandler wsgi-script .py
diff --git a/install/migration/index.html b/install/migration/index.html
index b3ea46b2..43a6483a 100644
--- a/install/migration/index.html
+++ b/install/migration/index.html
@@ -23,7 +23,7 @@ Upon successful login your Kerberos account will be activated.