Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/online_check/README
blob: 38841e2c2494475e77ef5333a4d852552fe83887 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
This is a sample application that uses python-stdnum to see which number
formats are valid for a supplied number as can be seen online at:
  https://arthurdejong.org/python-stdnum/check/

Configuring the WSGI application in Apache.

# /path/to/wsgi is the directory containing the WSGI scripts
# /path/to/html is the directory containing the static files

WSGIDaemonProcess stdnum threads=5 maximum-requests=100 display-name=%{GROUP}
<Directory /path/to/wsgi>
  <Files stdnum.wsgi>
    WSGIProcessGroup stdnum
  </Files>
</Directory>
Alias /check /path/to/html
WSGIScriptAlias /check/stdnum.wsgi /path/to/wsgi/stdnum.wsgi
RewriteRule ^/check/$ /check/stdnum.wsgi/$1 [QSA,PT,L]