changeset 4533:58ceb1d1c38d

add a workaround for CGI autodetection problem in flup <= 1.0.1
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 03 Feb 2009 03:10:44 +0100
parents 65c0426f2b1f
children 0b176807b07c
files wiki/server/moin.cgi
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/wiki/server/moin.cgi	Tue Feb 03 03:07:43 2009 +0100
+++ b/wiki/server/moin.cgi	Tue Feb 03 03:10:44 2009 +0100
@@ -31,5 +31,9 @@
 #from MoinMoin import log
 #log.load_config('/path/to/logging_configuration_file')
 
+# this works around a bug in flup's CGI autodetection (as of flup 1.0.1):
+os.environ['FCGI_FORCE_CGI'] = 'Y' # 'Y' for (slow) CGI, 'N' for FCGI
+
 from MoinMoin.web.flup_frontend import CGIFrontEnd
 CGIFrontEnd().run()
+