| ... | @@ -224,7 +224,7 @@ Edit /etc/nginx/nginx.conf. Add next code to **http** section: |
... | @@ -224,7 +224,7 @@ Edit /etc/nginx/nginx.conf. Add next code to **http** section: |
|
|
|
|
|
|
|
server {
|
|
server {
|
|
|
listen YOUR_SERVER_IP:80;
|
|
listen YOUR_SERVER_IP:80;
|
|
|
server_name gitlab.YOUR_SUBDOMAIN.com;
|
|
server_name gitlab.YOUR_DOMAIN.com;
|
|
|
root /home/gitlab/gitlab/public;
|
|
root /home/gitlab/gitlab/public;
|
|
|
|
|
|
|
|
# individual nginx logs for this gitlab vhost
|
|
# individual nginx logs for this gitlab vhost
|
| ... | @@ -251,7 +251,7 @@ Edit /etc/nginx/nginx.conf. Add next code to **http** section: |
... | @@ -251,7 +251,7 @@ Edit /etc/nginx/nginx.conf. Add next code to **http** section: |
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
mygitlab.com - change to your domain.
|
|
gitlab.YOUR_DOMAIN.com - change to your domain.
|
|
|
|
|
|
|
|
Restart nginx:
|
|
Restart nginx:
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |