distro-tracker 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <VirtualHost *:80>
  2. ServerName distro-tracker
  3. CustomLog ${APACHE_LOG_DIR}/distro-tracker-access.log combined
  4. ErrorLog ${APACHE_LOG_DIR}/distro-tracker-error.log
  5. LogLevel warn
  6. Alias /static /var/lib/distro-tracker/static
  7. Alias /media /var/lib/distro-tracker/media
  8. <Directory /var/lib/distro-tracker>
  9. Order allow,deny
  10. Allow from all
  11. SetHandler None
  12. FileETag none
  13. Options FollowSymLinks
  14. <IfModule mod_expires.c>
  15. ExpiresActive On
  16. ExpiresByType image/gif "access plus 30 days"
  17. ExpiresByType image/jpg "access plus 30 days"
  18. ExpiresByType image/png "access plus 30 days"
  19. ExpiresByType image/jpeg "access plus 30 days"
  20. ExpiresByType text/css "access plus 30 days"
  21. ExpiresByType application/javascript "modification plus 2 years"
  22. ExpiresByType application/x-javascript "modification plus 2 years"
  23. </IfModule>
  24. <IfModule mod_headers.c>
  25. Header append Vary Accept-Encoding
  26. </IfModule>
  27. AddOutputFilterByType DEFLATE text/html text/css text/plain
  28. </Directory>
  29. WSGIDaemonProcess distro-tracker user=distro-tracker group=distro-tracker processes=4 maximum-requests=500 threads=1 display-name=%{GROUP}
  30. WSGIProcessGroup distro-tracker
  31. WSGIScriptAlias / /usr/share/pyshared/distro_tracker/project/wsgi.py
  32. </VirtualHost>
  33. <VirtualHost *:443>
  34. ServerName distro-tracker
  35. CustomLog ${APACHE_LOG_DIR}/distro-tracker-access.log combined
  36. ErrorLog ${APACHE_LOG_DIR}/distro-tracker-error.log
  37. LogLevel warn
  38. SSLEngine on
  39. # Update certificates files here
  40. SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
  41. SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
  42. Alias /static /var/lib/distro-tracker/static
  43. Alias /media /var/lib/distro-tracker/media
  44. <Directory /var/lib/distro-tracker>
  45. Order allow,deny
  46. Allow from all
  47. SetHandler None
  48. FileETag none
  49. Options FollowSymLinks
  50. <IfModule mod_expires.c>
  51. ExpiresActive On
  52. ExpiresByType image/gif "access plus 30 days"
  53. ExpiresByType image/jpg "access plus 30 days"
  54. ExpiresByType image/png "access plus 30 days"
  55. ExpiresByType image/jpeg "access plus 30 days"
  56. ExpiresByType text/css "access plus 30 days"
  57. ExpiresByType application/javascript "modification plus 2 years"
  58. ExpiresByType application/x-javascript "modification plus 2 years"
  59. </IfModule>
  60. <IfModule mod_headers.c>
  61. Header append Vary Accept-Encoding
  62. </IfModule>
  63. AddOutputFilterByType DEFLATE text/html text/css text/plain
  64. </Directory>
  65. WSGIProcessGroup distro-tracker
  66. WSGIScriptAlias / /usr/share/pyshared/distro_tracker/project/wsgi.py
  67. </VirtualHost>