diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2013-04-23 19:54:21 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2013-05-06 16:22:30 +0200 |
commit | c72d0f5075c63df0d75331d5afd0da2dc752ec14 (patch) | |
tree | 18562fc01a13f9cac2f4bea1e41719d96fdd7c5a /install/conf | |
parent | c5e99d7cd6545174fd677452ac9051acd9a5ef68 (diff) | |
download | freeipa-c72d0f5075c63df0d75331d5afd0da2dc752ec14.tar.gz freeipa-c72d0f5075c63df0d75331d5afd0da2dc752ec14.tar.xz freeipa-c72d0f5075c63df0d75331d5afd0da2dc752ec14.zip |
Generate plugin index dynamically
https://fedorahosted.org/freeipa/ticket/3235
Diffstat (limited to 'install/conf')
-rw-r--r-- | install/conf/ipa-rewrite.conf | 5 | ||||
-rw-r--r-- | install/conf/ipa.conf | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/install/conf/ipa-rewrite.conf b/install/conf/ipa-rewrite.conf index 8da210d0a..b22caa1df 100644 --- a/install/conf/ipa-rewrite.conf +++ b/install/conf/ipa-rewrite.conf @@ -1,4 +1,4 @@ -# VERSION 3 - DO NOT REMOVE THIS LINE +# VERSION 4 - DO NOT REMOVE THIS LINE RewriteEngine on @@ -16,3 +16,6 @@ RewriteRule ^/ipa/(.*) http://$FQDN/ipa/$$1 [L,R=301] RewriteCond %{SERVER_PORT} !^443$$ RewriteCond %{REQUEST_URI} !^/ipa/(errors|config) RewriteRule ^/ipa/(.*) https://$FQDN/ipa/$$1 [L,R=301,NC] + +# Rewrite for plugin index, make it like it's a static file +RewriteRule ^/ipa/ui/js/freeipa/plugins.js$$ /ipa/wsgi/plugins.py [PT] diff --git a/install/conf/ipa.conf b/install/conf/ipa.conf index f3384d056..1a33f6287 100644 --- a/install/conf/ipa.conf +++ b/install/conf/ipa.conf @@ -1,5 +1,5 @@ # -# VERSION 12 - DO NOT REMOVE THIS LINE +# VERSION 13 - DO NOT REMOVE THIS LINE # # This file may be overwritten on upgrades. # @@ -137,7 +137,15 @@ Alias /ipa/ui "/usr/share/ipa/ui" Allow from all </Directory> - +# Simple wsgi scripts required by ui +Alias /ipa/wsgi "/usr/share/ipa/wsgi" +<Directory "/usr/share/ipa/wsgi"> + AllowOverride None + Satisfy Any + Allow from all + Options ExecCGI + AddHandler wsgi-script .py +</Directory> # Protect our CGIs <Directory /var/www/cgi-bin> |