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.

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