mirror of
https://github.com/jlengrand/gitlab-recipes.git
synced 2026-03-10 08:11:17 +00:00
32 lines
942 B
Plaintext
32 lines
942 B
Plaintext
# 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>
|