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_cgit.j2 1.2KB

123456789101112131415161718192021222324252627282930313233343536
  1. <VirtualHost *:80>
  2. ServerName {{ cgit_domain }}
  3. Redirect permanent / https://{{ cgit_domain }}/
  4. </VirtualHost>
  5. <VirtualHost *:443>
  6. ServerName {{ cgit_domain }}
  7. SSLEngine on
  8. SSLProtocol ALL -SSLv2
  9. SSLHonorCipherOrder On
  10. SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AES:RSA+3DES:!ADH:!AECDH:!MD5:!DSS
  11. SSLCertificateFile /etc/ssl/certs/wildcard_public_cert.crt
  12. SSLCertificateKeyFile /etc/ssl/private/wildcard_private.key
  13. SSLCACertificateFile /etc/ssl/certs/wildcard_ca.pem
  14. Header add Strict-Transport-Security "max-age=15768000; includeSubdomains"
  15. DocumentRoot /var/www/htdocs/cgit/
  16. <Directory "/var/www/htdocs/cgit/">
  17. AllowOverride None
  18. Options +ExecCGI
  19. Order allow,deny
  20. Allow from all
  21. </Directory>
  22. Alias /cgit.png /var/www/htdocs/cgit/cgit.png
  23. Alias /cgit.css /var/www/htdocs/cgit/cgit.css
  24. Alias /favicon.ico /var/www/htdocs/cgit/favicon.ico
  25. Alias /robots.txt /var/www/htdocs/cgit/robots.txt
  26. ScriptAlias / /var/www/htdocs/cgit/cgit.cgi/
  27. CustomLog /var/log/apache2/cgit_access.log combined
  28. ErrorLog /var/log/apache2/cgit_error.log
  29. </VirtualHost>