Просмотр исходного кода

FCGI/WSGI stuff testing

pull/24/head
Ben Kurtovic 12 лет назад
Родитель
Сommit
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

Загрузка…
Отмена
Сохранить