Home  >  Q&A  >  body text

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.

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 
滿天的星座滿天的星座2713 days ago577

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-05-16 17:18:26

    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

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-16 17:18:26

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

    reply
    0
  • Cancelreply