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.

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