Skip to content

配制文件vue.test.conf文件

ini
server{
	list 80;
	server_name vue.test.com;
	
	location /{
		try_files $uri/ index.html;
		root /home/test
	}
	location /dist{
		try_files $uri $uri/ /dist/index.html
		alias /home/test/dist/
	}
	location /vue{
		try_files $uri $uri/ /vue/index.hmtl
		alias /home/xh/vue/
	}
}

Released under the MIT License.