summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2014-05-09 16:16:11 -0700
committerSimo Sorce <simo@redhat.com>2014-05-10 09:57:28 -0400
commit513aa5d4dbb72b73a9d60c89080868c43dedc358 (patch)
treefa39f3d1cd5b66072099026cb3bc41cf14725a51 /templates
parent493384f04be7f5615a2344ca896028837bfaa3a4 (diff)
downloadipsilon-513aa5d4dbb72b73a9d60c89080868c43dedc358.tar.gz
ipsilon-513aa5d4dbb72b73a9d60c89080868c43dedc358.tar.xz
ipsilon-513aa5d4dbb72b73a9d60c89080868c43dedc358.zip
WSGI settings incorrectly makes instance global
The WSGIProcessGroup directive should only apply to the /idp URI. Without wrapping this directive in the Location element, multiple Ipsilon instances or an Ipsilon instance installed on a FreeIPA server will conflict and encounter problems running in the same httpd process. All wsgi processes will end up redirected to the last process grup defined in the configuration in this case and all other instances of wsgi applications will be unreachable. Resolves: https://fedorahosted.org/ipsilon/ticket/1 Signed-off-by: Nathan Kinder <nkinder@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/install/idp.conf5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/install/idp.conf b/templates/install/idp.conf
index ea4a769..eb5752e 100644
--- a/templates/install/idp.conf
+++ b/templates/install/idp.conf
@@ -1,7 +1,10 @@
Alias /${instance}/ui /usr/share/ipsilon/ui
WSGIScriptAlias /${instance} /usr/sbin/ipsilon
WSGIDaemonProcess ${instance} user=ipsilon group=ipsilon home=${datadir}
-WSGIProcessGroup ${instance}
+
+<Location /idp>
+ WSGIProcessGroup ${instance}
+</Location>
<Directory /usr/sbin>
Require all granted