mirror of
https://github.com/jlengrand/gitlab-recipes.git
synced 2026-03-10 08:11:17 +00:00
Added apache virtual host configuration
This commit is contained in:
31
apache/gitlab
Normal file
31
apache/gitlab
Normal file
@@ -0,0 +1,31 @@
|
||||
# require apache module mod_proxy and mod_proxy_http
|
||||
<VirtualHost *:80>
|
||||
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
|
||||
</VirtualHost>
|
||||
<VirtualHost *:443>
|
||||
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
|
||||
</VirtualHost>
|
||||
Reference in New Issue
Block a user