Skip to content

Commit 9d69ad9

Browse files
committed
Merge pull request #5 from PCKlub/master
Added apache virtualhost configuration
2 parents 221da04 + f4e249d commit 9d69ad9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

apache/gitlab

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# require apache module mod_proxy and mod_proxy_http
2+
<VirtualHost *:80>
3+
ServerName gitlab.domain.com
4+
#ServerAlias git.domain.com
5+
6+
# Uncomment if you want redirect from HTTP to HTTPS
7+
#RewriteEngine on
8+
#RewriteCond %{SERVER_PORT} ^80$
9+
#RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R]
10+
11+
ProxyPass / http://127.0.0.1:3000/
12+
ProxyPassReverse / http://127.0.0.1:3000/
13+
14+
CustomLog /var/log/apache2/gitlab/access.log combined
15+
ErrorLog /var/log/apache2/gitlab/error.log
16+
</VirtualHost>
17+
<VirtualHost *:443>
18+
ServerName gitlab.domain.com
19+
ServerAdmin [email protected]
20+
21+
SSLEngine On
22+
SSLCertificateFile /etc/apache2/ssl/server.crt
23+
SSLCertificateKeyFile /etc/apache2/ssl/server.key
24+
#SSLCertificateChainFile /etc/apache2/ssl/cacert.pem
25+
26+
ProxyPass / http://127.0.0.1:3000/
27+
ProxyPassReverse / http://127.0.0.1:3000/
28+
29+
CustomLog /var/log/apache2/gitlab/access.log combined
30+
ErrorLog /var/log/apache2/gitlab/error.log
31+
</VirtualHost>

0 commit comments

Comments
 (0)