Browse Source

FCGI/WSGI stuff testing

pull/24/head
Ben Kurtovic 12 years ago
parent
commit
8e000b2396
2 changed files with 14 additions and 0 deletions
  1. +9
    -0
      copyvio.fcgi
  2. +5
    -0
      rewrite.script

+ 9
- 0
copyvio.fcgi View File

@@ -0,0 +1,9 @@
#! /usr/bin/env python

def myapp(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
return ['Hello World!\n']

if __name__ == "__main__":
from flup.server.fcgi import WSGIServer
WSGIServer(myapp).run()

+ 5
- 0
rewrite.script View File

@@ -0,0 +1,5 @@
match URL into $ with ^/~earwig/copyvio(\?.*?)?$
if matched then
set URL = /~earwig/rewrite/copyvio.fcgi$1
goto END
endif

Loading…
Cancel
Save