nginx配置history模式

添加try_files属性

			server {
        listen       91;
        location / {
            root   E:/dist/test;
            index  index.html;
			try_files $uri /index.html;
        }
         location /test2/ {
            root   E:/dist;
            index  index.html;
			try_files $uri /test2/index.html;
        }	
    }

猜你喜欢

转载自blog.csdn.net/chaogaoxiaojifantong/article/details/108434884