#!/usr/bin/python ''' A sample http.conf file: --------------------------------------------------------------- ############################################################################################################ # # ENABLE FASTCGI VERSION OF DDCP # #=========================================================================================================== # load mod_python apache module. path to mod_python.so might vary upon your installation! LoadModule fastcgi_module modules/mod_fastcgi.so # on Mac OS X use this for the default apple apache installation #LoadModule fastcgi_module libexec/httpd/mod_fastcgi.so AddModule mod_fastcgi.c # mount the application wherever you want by modifying the ScriptAliasMatch directive. # By default it is configured to use /dd ^(/dd/.*$) FastCgiIpcDir /tmp/fcgi_ipc/ FastCgiServer /home/biocase/ddcp/webapp/server.fcgi -idle-timeout 120 -processes 1 AddHandler fastcgi-script .fcgi ScriptAliasMatch ^(/dd/.*$) /home/biocase/ddcp/webapp/server.fcgi$1 --------------------------------------------------------------- ''' # find biocase libraries # IMPORTANT! import sys, os.path from server import log, configureServer import cherrypy from flup.server.fcgi import WSGIServer app = configureServer() cherrypy.engine.start(blocking=False) # use flup to start wsgi server WSGIServer(app).run()