12345678910111213141516171819202122232425262728 |
- <VirtualHost *:80>
- ServerName {{ cgit_domain }}
-
- Redirect permanent / https://{{ cgit_domain }}/
- </VirtualHost>
-
- <VirtualHost *:443>
- ServerName {{ cgit_domain }}
-
- Include /etc/apache2/ssl.conf
- DocumentRoot /var/www/htdocs/cgit/
-
- <Directory "/var/www/htdocs/cgit/">
- AllowOverride None
- Options +ExecCGI
- Order allow,deny
- Allow from all
- </Directory>
-
- Alias /cgit.png /var/www/htdocs/cgit/cgit.png
- Alias /cgit.css /var/www/htdocs/cgit/cgit.css
- Alias /favicon.ico /var/www/htdocs/cgit/favicon.ico
- Alias /robots.txt /var/www/htdocs/cgit/robots.txt
- ScriptAlias / /var/www/htdocs/cgit/cgit.cgi/
-
- CustomLog /var/log/apache2/cgit_access.log combined
- ErrorLog /var/log/apache2/cgit_error.log
- </VirtualHost>
|