E5C581A7A73C5A347BCAC83F7768C874.jpg

server {
    listen       80;
    listen  [::]:80;
    server_name  localhost;


    location / {
        root   /usr/share/nginx/html;
        index  index.html index.htm;
        #当你找不到其他合适的东西,默认给你分配的
        try_files uriuri/ /index.html =404;
    }


    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

}

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code