Gitlab is set up, and access requires IP: port 3000 to access it. After the nginx agent is configured and started successfully, it cannot be accessed.
滿天的星座
滿天的星座 2017-05-16 17:16:26
0
2
616

The gitlab service is deployed on this machine, and the local gitlab page can be accessed through localhost, 127.0.0.1 and the local IP.

Now I want to build a website on this machine to do some testing, but I don’t know how to access the newly created website. I searched for relevant information. It is said that I need to modify the nginx configuration file. I added the qwe.git.com domain name to the configuration file. .

The service has been started.

tcp        0        0 0.0.0.0:80        0.0.0.0:*                   LISTEN          3783/nginx

I compiled and installed nginx, and I configured it after conf,

 server {
 listen *:80 default_server;
 server_name qwe.git.com 
滿天的星座
滿天的星座

reply all(2)
巴扎黑
server{
    listen 80;
    server_name xxx.xxx.xxx;(域名)
    location / {
        proxy_pass http://127.0.0.1:3000
    }
}

Externally monitor requests for the xxx.xxx.xxx domain name, forward them to port 3000, and feedback the request results

大家讲道理

You need to resolve the domain name you want to access to this server...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template