Because the subject needs encryption authorization, it can only use the domain name and does not support IP and other methods of authorization. If you test locally, you can specify a secondary domain name to the test website through hosts (ECS can use the same method, see the end of the article).
Operation process
Normal website building process: domain name resolution -->access to the domain name, install wordpress -->install and enable the theme --> Subject of authorization
Test process and Normal process The difference is the first step Domain name resolution use hosts replace...
I don't know what to say. It's the only way. If you understand it, you should understand it. If you don't, please go Normal station construction technological process.
Hosts file address
In C: Windows System32 drivers etc
Other systems Please search Baidu
![本地(云服务器)测试授权方法](https://res.iotheme.cn/wp-content/themes/iotheme/images/t.png)
Hosts modification
Windows please open the hosts file with an editor such as Notepad, and add the address you use for testing at the end of the file. For example, use Domain name registered with activation code For "nb.com" (you can really register this domain name. If you don't have a domain name, you can register it yourself), you can fill in "a.nb.com", "sss.nb.com", "test. nb.com" or "nb.com" directly for the address to be tested locally.
The format is 127.0.0.1 test.nb.com//Note that there should be a space between the IP address and the domain name
![本地(云服务器)测试授权方法](https://res.iotheme.cn/wp-content/themes/iotheme/images/t.png)
Now you can use the test domain name to access. Enter the address filled in the hosts file in the browser, as shown in the figure above: http://test.nb.com , if there is a port number: http://test.nb.com:8080
Server test
If you have an ECS but do not have a domain name, you can specify the test domain name to the ECS in the same way. If your ECS IP address is 110.110.1.119
Fill in the hosts file above: 110.110.1.119 test001.baidu.com
Note: For domestic servers, please find a registered domain name, such as baidu.com
OneNav to grant authorization test