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.

39 lines
1.3 KiB

  1. # This is an example configuration file for Apache2 that creates
  2. # a dedicated VirtualHost specifically for mumble-django. This is the
  3. # recommended setup.
  4. <VirtualHost *:80>
  5. ServerName example.com
  6. ServerAlias www.example.com
  7. Alias /static/ /srv/mumble-django/htdocs/
  8. # for Debian squeeze(unstable)
  9. Alias /media/ /usr/share/pyshared/django/contrib/admin/media/
  10. # if self-installed using setup.py
  11. #Alias /media/ /usr/lib/python2.4/site-packages/django/contrib/admin/media/
  12. #Alias /media/ /usr/lib/python2.5/site-packages/django/contrib/admin/media/
  13. WSGIScriptAlias / /srv/mumble-django/mumble-django.wsgi
  14. WSGIDaemonProcess mumble-django threads=25
  15. WSGIProcessGroup mumble-django
  16. WSGIScriptReloading Off
  17. # Cache optimization - not necessarily needed for MD, but nice to have :)
  18. FileETag None
  19. <IfModule mod_headers.c>
  20. Header unset ETag
  21. <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
  22. Header set Cache-Control "max-age=86400, must-revalidate"
  23. </FilesMatch>
  24. <IfModule mod_deflate.c>
  25. # compress content
  26. AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript image/png image/jpeg image/gif
  27. # properly handle requests coming from behind proxies
  28. Header append Vary User-Agent
  29. </IfModule>
  30. </IfModule>
  31. </VirtualHost>