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.

54 lines
2.0 KiB

  1. # kate: hl Apache Configuration
  2. # This is an example configuration file for Apache2 that you can use to integrate
  3. # Mumble-Django into an existing VirtualHost and run it under the path /mumble-django.
  4. # Although this should work, I recommend using a dedicated VirtualHost, which can
  5. # easily be done using a subdomain.
  6. #
  7. # For example purposes, I put a complete VirtualHost configuration here. The part
  8. # relevant for mumble-django is marked with comments.
  9. #
  10. <VirtualHost *:80>
  11. ServerName example.com
  12. ServerAlias www.example.com
  13. DocumentRoot /var/www
  14. # -----------8<--------- cut here
  15. Alias /mumble-django/static/ /srv/mumble-django/htdocs/
  16. Alias /mumble-django/mumble/media/ /srv/mumble-django/pyweb/mumble/media/
  17. # for Debian squeeze(unstable)
  18. Alias /mumble-django/media/ /usr/share/pyshared/django/contrib/admin/media/
  19. # if installed using easy_install
  20. #Alias /media/ /usr/lib/python2.5/site-packages/Django-1.2.3-py2.5.egg/django/contrib/admin/media/
  21. # if self-installed using setup.py
  22. #Alias /mumble-django/media/ /usr/lib/python2.4/site-packages/django/contrib/admin/media/
  23. #Alias /mumble-django/media/ /usr/lib/python2.5/site-packages/django/contrib/admin/media/
  24. WSGIScriptAlias /mumble-django /srv/mumble-django/mumble-django.wsgi
  25. WSGIDaemonProcess mumble-django threads=25
  26. WSGIProcessGroup mumble-django
  27. WSGIScriptReloading Off
  28. # ----------->8--------- cut here
  29. # Cache optimization - not necessarily needed for MD, but nice to have :)
  30. FileETag None
  31. <IfModule mod_headers.c>
  32. Header unset ETag
  33. <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
  34. Header set Cache-Control "max-age=86400, must-revalidate"
  35. </FilesMatch>
  36. <IfModule mod_deflate.c>
  37. # compress content
  38. AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript image/png image/jpeg image/gif
  39. # properly handle requests coming from behind proxies
  40. Header append Vary User-Agent
  41. </IfModule>
  42. </IfModule>
  43. </VirtualHost>