examples: Added an example for wsgidir usage.
[ashd.git] / examples / python / wsgidir / wsgidir.rc
1 # Python 2 handler process
2 child wsgidir
3   exec ashd-wsgi ashd.wsgidir
4 # Python 3 scripts can also be served, using ashd-wsgi3
5 child wsgidir3
6   exec ashd-wsgi3 ashd.wsgidir
7
8 # Dispatch any *.wsgi files to wsgidir
9 # See the Python documention for the ashd.wsgidir module for the
10 #  meaning of the "xset python-handler chain" directive and what other
11 #  values it can take.
12 match
13   filename *.wsgi
14   xset python-handler chain
15   handler wsgidir
16 # Do the same for Python3 scripts names *.wsgi3
17 match
18   filename *.wsgi3
19   xset python-handler chain
20   handler wsgidir3