고정 된 정적 페이지 ( "/html/index.html")에서 Nginx 서버에 대한 요청을 처리하려면 어떻게해야합니까?
예 : /html/index.html localhost / localhost / data localhost / data / html localhost / data / images에서 다음 요청이 제공되기를 원합니다.
기본적으로 Nginx는 URI를 내 루트 디렉토리에 추가하고 로컬 파일 시스템에서 찾고 있습니다.
root /html;
location / {
try_files /index.html =404;
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다