Commits

Matthew Marshall committed 17e3d4a

Added dispatch.fcgi

  • Participants
  • Parent commits 09e7fcb

Comments (0)

Files changed (2)

File htdocs/.htaccess

 RewriteRule ^static/style-gitweb.css$ /static/style.css [L]
 RewriteRule ^static/ - [L]
 RewriteRule ^u/(\w+)/(.*)$ hgfcgi/dispatch.fcgi/u/$1/$2 [L]
+RewriteRule ^(dispatch\.fcgi/.*)$ - [L]
 RewriteRule ^(.*)$ dispatch.fcgi/$1 [L]

File htdocs/dispatch.fcgi

+#!/usr/bin/python2.4
+import sys
+sys.path += ['/home/freehg/lib/python']
+from fcgi import WSGIServer
+from django.core.handlers.wsgi import WSGIHandler
+import os
+os.environ['DJANGO_SETTINGS_MODULE'] = 'freehg.settings'
+WSGIServer(WSGIHandler()).run()