我想在浏览器中编写10.10.0.0时,它带我索引页。但它没有我尝试过
server {
listen 8080;
server_name 10.10.0.0;
return 301 http://localhost:8080/index.html;
}
server {
listen 8080;
server_name 10.10.0.0;
location / {
return 301 http://localhost:8080/index.html;
}
}