From f4e249d2b9ffefa9ac9b1c9f4187a44ac2ecc594 Mon Sep 17 00:00:00 2001 From: Viliam Tokar?ik Date: Wed, 12 Sep 2012 16:40:13 +0200 Subject: [PATCH] Added apache virtual host configuration --- apache/gitlab | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 apache/gitlab diff --git a/apache/gitlab b/apache/gitlab new file mode 100644 index 0000000..0268227 --- /dev/null +++ b/apache/gitlab @@ -0,0 +1,31 @@ +# require apache module mod_proxy and mod_proxy_http + + ServerName gitlab.domain.com + #ServerAlias git.domain.com + + # Uncomment if you want redirect from HTTP to HTTPS + #RewriteEngine on + #RewriteCond %{SERVER_PORT} ^80$ + #RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R] + + ProxyPass / http://127.0.0.1:3000/ + ProxyPassReverse / http://127.0.0.1:3000/ + + CustomLog /var/log/apache2/gitlab/access.log combined + ErrorLog /var/log/apache2/gitlab/error.log + + + ServerName gitlab.domain.com + ServerAdmin gitlab@domain.com + + SSLEngine On + SSLCertificateFile /etc/apache2/ssl/server.crt + SSLCertificateKeyFile /etc/apache2/ssl/server.key + #SSLCertificateChainFile /etc/apache2/ssl/cacert.pem + + ProxyPass / http://127.0.0.1:3000/ + ProxyPassReverse / http://127.0.0.1:3000/ + + CustomLog /var/log/apache2/gitlab/access.log combined + ErrorLog /var/log/apache2/gitlab/error.log +