瀏覽代碼

FCGI/WSGI stuff testing

pull/24/head
Ben Kurtovic 12 年之前
父節點
當前提交
8e000b2396
共有 2 個文件被更改,包括 14 次插入0 次删除
  1. +9
    -0
      copyvio.fcgi
  2. +5
    -0
      rewrite.script

+ 9
- 0
copyvio.fcgi 查看文件

@@ -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 查看文件

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

Loading…
取消
儲存