Modify the configuration of all Nginx virtual hosts. This/usr/local/nginx/conf/nginx. conf also needs to be modified. Add the IP address to the listen in all servers {}, as shown below:
The code is as follows: |
Copy code |
"Listen [2607: f358: 1: fed5: 22: 0 :???? : ???] : 80 listen 6only = on; |
Details
The code is as follows: |
Copy code |
Server { Listen 184.82.232.8: 80; Listen [2607: f878: 3: 2: 0: 300: 2004: 10]: 80; Listen [2607: f878: 3: 2: 0: 300: 2004: 11]: 80; Server_name burst-la.vpser.net; Index index.html index.htm index. php; Root/home/wwwroot; Some configurations are omitted. } |
After modification as required, run:/usr/local/nginx/sbin/nginx-t to check whether there is an error. If there is no error, run: killall nginx and then execute: start/usr/local/nginx/sbin/nginx.
Open your browser and enter: http: // [2607: f878: 3: 2: 0: 300: 2004: 10]/.