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.

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