File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 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 gitlab@domain.com
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>
You can’t perform that action at this time.
0 commit comments