nginx 의 정적 웹 페이지 를 방문 할 때 html 접미사 가 없 도록 합 니 다.
776 단어 nginx
location ^~ /translate/ { // URL translate
if (!-e $request_filename){ // URL
rewrite ^(.*)$ /$1.html last;
break;
}
root /var/www/html;
index index.html index.nginx-debian.html;
try_files $uri $uri/ =404;
}