Pārlūkot izejas kodu

FCGI/WSGI stuff testing

pull/24/head
Ben Kurtovic pirms 12 gadiem
vecāks
revīzija
8e000b2396
2 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  1. +9
    -0
      copyvio.fcgi
  2. +5
    -0
      rewrite.script

+ 9
- 0
copyvio.fcgi Parādīt failu

@@ -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 Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt