-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvhost.conf
36 lines (36 loc) · 1.19 KB
/
vhost.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Site HTTPS
<VirtualHost 10.10.10.10:443>
ServerName host.com
ServerAlias www.host.com
DocumentRoot /var/www/site
CustomLog /var/log/apache2/site_ssl_access.log combined
ErrorLog /var/log/apache2/site_ssl_error.log
ServerAdmin [email protected]
DirectoryIndex index.html index.php
AddDefaultCharset none
php_admin_value open_basedir "/var/www:."
php_admin_value upload_tmp_dir "/var/www/tmp"
php_admin_value session.save_path "/var/www/tmp"
AddType application/x-httpd-php .php
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /etc/apache2/SSL/site/cert.pem
SSLCertificateKeyFile /etc/apache2/SSL/site/privkey.pem
SSLCertificateChainFile /etc/apache2/SSL/site/chain.pem
SetEnv GIT_PROJECT_ROOT /opt/git
SetEnv GIT_HTTP_EXPORT_ALL
ScriptAlias /git/ /usr/lib/git-core/git-http-backend/
<Directory "/usr/lib/git-core*">
Options ExecCGI Indexes
Order Deny,Allow
Allow from all
Require all granted
</Directory>
<LocationMatch ^/git/.*/git-receive-pack$>
AuthType Basic
AuthName "Git Access"
AuthUserFile /opt/git/.htpasswd
Require valid-user
</LocationMatch>
</VirtualHost>