Forked mumble-django project from https://bitbucket.org/Svedrin/mumble-django
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.0 KiB

15 years ago
  1. #
  2. # This configuration snippet has been donated by Anon in ticket #21 at:
  3. # <http://bitbucket.org/Svedrin/mumble-django/issue/21/fcgi-script-missing>
  4. #
  5. # To run mumble-django, start the FastCGI server like so:
  6. # python pyweb/manage.py runfcgi daemonize=false socket=/tmp/mumble-django.sock maxrequests=1
  7. #
  8. # If lighttpd runs under a different user than the FastCGI daemon, make sure
  9. # lighttpd can access the sockfile.
  10. #
  11. # Then, add this variable to settings.py:
  12. # FORCE_SCRIPT_NAME = ''
  13. #
  14. # Now insert the configuration shown here into lighttpd.conf.
  15. #
  16. server.document-root = "/usr/local/www/mumble-django"
  17. alias.url = (
  18. "/static" => "/usr/local/www/mumble-django/htdocs/",
  19. "/media" => "/usr/local/lib/python2.6/site-packages/django/contrib/admin/media/"
  20. )
  21. url.rewrite-once = (
  22. "^(/media.*)$" => "$1",
  23. "^(/static.*)$" => "$1",
  24. "^(/.*)$" => "/mumble-django.fcgi$1",
  25. )
  26. fastcgi.server = (
  27. "/mumble-django.fcgi" => (
  28. "" => (
  29. "socket" => "/tmp/mumble-django.sock",
  30. "check-local" => "disable"
  31. )
  32. )
  33. )