No Description
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.

etc_apache2_sites-available_gpodder.j2 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <VirtualHost *:80>
  2. ServerName {{ gpodder_subdomain }}.{{ item.name }}
  3. Redirect temp / https://{{ gpodder_subdomain }}.{{ item.name }}/
  4. </VirtualHost>
  5. <VirtualHost *:443>
  6. ServerName {{ gpodder_subdomain }}.{{ item.name }}
  7. SSLEngine On
  8. DocumentRoot "{{ item.doc_root }}"
  9. DirectoryIndex index.html
  10. Options -Indexes
  11. HostnameLookups Off
  12. LogLevel warn
  13. ErrorLog /var/log/apache2/gpodder.info-error_log
  14. CustomLog /var/log/apache2/gpodder.info-access_log common
  15. ProxyRequests Off
  16. ProxyPreserveHost On
  17. <Directory /home/gpodder/gpodder/static>
  18. AllowOverride None
  19. Require all granted
  20. </Directory>
  21. Alias /static /home/gpodder/gpodder/static
  22. ProxyPassMatch ^/static !
  23. Alias /favicon.ico /home/gpodder/gpodder/static/favicon.ico
  24. ProxyPassMatch ^/favicon.ico !
  25. Alias /favicon.png /home/gpodder/gpodder/static/favicon.png
  26. ProxyPassMatch ^/favicon.png !
  27. <Directory /data/gpodder>
  28. AllowOverride None
  29. Require all granted
  30. </Directory>
  31. Alias /media /data/gpodder
  32. ProxyPassMatch ^/media !
  33. ProxyPass / http://localhost:{{ gpodder_internal_port }}/
  34. ProxyPassReverse / http://localhost:{{ gpodder_internal_port }}/
  35. </VirtualHost>