0
내가 원하는 http://localhost/health ->http://localhost/health.html, 어떻게 내 위치 구성을 쓸 수 있습니까?nginx 어떻게 다시 쓸 수 있습니까?
이것은 내 위치이지만 작동하지 않습니다.
location ^~ /health {
root /usr/share/nginx/html;
index health.html ;
}
location/{
root /usr/share/nginx/html;
index index.html index.htm;
}
도움 주셔서 감사합니다.
화려한, 당신이. 그것은 작동합니다. – kunpengku