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.

43 lines
1.5 KiB

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