File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change
1
+ server.modules += ( "mod_simple_vhost",
2
+ "mod_proxy"
3
+ )
4
+
5
+ ## The document root of a virtual host is document-root =
6
+ ## simple-vhost.server-root + $HTTP["host"] + simple-vhost.document-root
7
+ simple-vhost.server-root = "/var/www"
8
+ simple-vhost.document-root = "htdocs"
9
+
10
+ ## the default host if no host is sent
11
+ simple-vhost.default-host = "YOUR_SERVER_FQDN"
12
+
13
+
14
+ $HTTP["host"] == "YOUR_SERVER_FQDN" {
15
+ var.vhost_name = "YOUR_SERVER_FQDN"
16
+
17
+ ## This Path is irrelevant for gitlab and should be empty
18
+ var.vhost_path = "/var/www/YOUR_SERVER_FQDN"
19
+
20
+ proxy.server = ( "" => ( ( "host" => "127.0.0.1",
21
+ "port" => "8080"
22
+ ),
23
+ ))
24
+ ssl.pemfile = "/etc/lighttpd/certs/YOUR_SERVER_FQDN.pem"
25
+ }
Original file line number Diff line number Diff line change
1
+ This config access gitlab via TCP port instead of sockets because of the
2
+ mod_proxy module which seems to be unable to connect via sockets.
3
+
4
+ Because the _ gitlab_ default config is set for listening to UNIX sockets you
5
+ need to change that default configuration in * gitlab/config/unicorn.rb* :
6
+
7
+ listen "127.0.0.1:8080"
You can’t perform that action at this time.
0 commit comments