Skip to content

Commit 29ce1f5

Browse files
committed
Added default_server directive to gitlab site conf
Without the default_server site nginx never gets to call the application, it keeps displaying the "Welcome to nginx" page
1 parent a2bcfa1 commit 29ce1f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nginx/gitlab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ upstream gitlab {
77
}
88

99
server {
10-
listen YOUR_SERVER_IP:80; # e.g., listen 192.168.1.1:80;
10+
listen YOUR_SERVER_IP:80 default_server; # e.g., listen 192.168.1.1:80;
1111
server_name YOUR_SERVER_FQDN; # e.g., server_name source.example.com;
1212
root /home/gitlab/gitlab/public;
1313

0 commit comments

Comments
 (0)