X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=examples%2Fpython%2Fwsgidir%2Fwsgidir.rc;fp=examples%2Fpython%2Fwsgidir%2Fwsgidir.rc;h=dd40a8f762b65fa665a11362e2ed79ab7dee97f2;hp=0000000000000000000000000000000000000000;hb=8774cda21dfafd73df99686ded102c4f6f5e2d2e;hpb=84a034e1e63195a8378acacb35eae8e45ef78f0f diff --git a/examples/python/wsgidir/wsgidir.rc b/examples/python/wsgidir/wsgidir.rc new file mode 100644 index 0000000..dd40a8f --- /dev/null +++ b/examples/python/wsgidir/wsgidir.rc @@ -0,0 +1,20 @@ +# Python 2 handler process +child wsgidir + exec ashd-wsgi ashd.wsgidir +# Python 3 scripts can also be served, using ashd-wsgi3 +child wsgidir3 + exec ashd-wsgi3 ashd.wsgidir + +# Dispatch any *.wsgi files to wsgidir +# See the Python documention for the ashd.wsgidir module for the +# meaning of the "xset python-handler chain" directive and what other +# values it can take. +match + filename *.wsgi + xset python-handler chain + handler wsgidir +# Do the same for Python3 scripts names *.wsgi3 +match + filename *.wsgi3 + xset python-handler chain + handler wsgidir3