核心提示:vue打包项目后刷新404的问题Nginx配置}server {	listen80;	server_namelocalhost;	index index.html;	root /root/dist;	...
       
        vue打包项目后刷新404的问题Nginx配置}
		
			
server {
	listen      80;
	server_name  localhost;
	index index.html;
	root /root/dist;
	location / {
	    root /root/dist;
	    try_files $uri $uri/ /index.html =404;
	}
}
						


 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                 
            
                