Ver código fonte

FCGI/WSGI stuff testing

pull/24/head
Ben Kurtovic 12 anos atrás
pai
commit
8e000b2396
2 arquivos alterados com 14 adições e 0 exclusões
  1. +9
    -0
      copyvio.fcgi
  2. +5
    -0
      rewrite.script

+ 9
- 0
copyvio.fcgi Ver arquivo

@@ -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 Ver arquivo

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

Carregando…
Cancelar
Salvar