comparison wiki/server/moin.fcg @ 2971:7fb3bc39c7b1

moin.fcg: add example for running under / url (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 05 Jan 2008 20:58:40 +0100
parents 78d745b57730
children d6fb846dc73c
comparison
equal deleted inserted replaced
2970:2620aa4811a4 2971:7fb3bc39c7b1
53 from MoinMoin.request import request_fcgi 53 from MoinMoin.request import request_fcgi
54 from MoinMoin.support import thfcgi 54 from MoinMoin.support import thfcgi
55 55
56 def handle_request(req, env, form): 56 def handle_request(req, env, form):
57 request = request_fcgi.Request(req, env, form) 57 request = request_fcgi.Request(req, env, form)
58 # use this instead of the line above if your wiki runs under "/" url:
59 #request = request_fcgi.Request(req, env, form, properties={'script_name': '/'})
60
58 request.run() 61 request.run()
59 62
60 if __name__ == '__main__': 63 if __name__ == '__main__':
61 fcg = thfcgi.FCGI(handle_request, max_requests=max_requests, backlog=backlog, max_threads=max_threads) 64 fcg = thfcgi.FCGI(handle_request, max_requests=max_requests, backlog=backlog, max_threads=max_threads)
62 fcg.run() 65 fcg.run()