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.

52 lines
1.8 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 self-installed using setup.py
  20. #Alias /mumble-django/media/ /usr/lib/python2.4/site-packages/django/contrib/admin/media/
  21. #Alias /mumble-django/media/ /usr/lib/python2.5/site-packages/django/contrib/admin/media/
  22. WSGIScriptAlias /mumble-django /srv/mumble-django/mumble-django.wsgi
  23. WSGIDaemonProcess mumble-django threads=25
  24. WSGIProcessGroup mumble-django
  25. WSGIScriptReloading Off
  26. # ----------->8--------- cut here
  27. # Cache optimization - not necessarily needed for MD, but nice to have :)
  28. FileETag None
  29. <IfModule mod_headers.c>
  30. Header unset ETag
  31. <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
  32. Header set Cache-Control "max-age=86400, must-revalidate"
  33. </FilesMatch>
  34. <IfModule mod_deflate.c>
  35. # compress content
  36. AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript image/png image/jpeg image/gif
  37. # properly handle requests coming from behind proxies
  38. Header append Vary User-Agent
  39. </IfModule>
  40. </IfModule>
  41. </VirtualHost>