Domain name to the host IP address, by domain: 8080 to access the site, remove the back of 8080; or other port numbers, visit the Web site domain name directly

Pre-purchase on Tencent cloud domain name and domain name management, domain name points to a domain ip address, tomcat specified using the default port 8006 is not 8080.

So you can use the domain name: 8006 / project name to access the site, but this seems also leaked the port number, the port number to think of removing the back of the domain name, after careful search, found that use nginx implement port forwarding, other ways temporarily know.

First of all,

1. nginx mounted in linux, Baidu reference article;

2. arranged in the nginx conf / nginx.conf parameters:

3. Need only the above settings, you can start nginx.

You can use the domain name directly access the site.

 

Guess you like

Origin blog.csdn.net/panshoujia/article/details/91411484