nginx:一个域名(端口)指定多个本地目录
很简单 只要这么配location /淘宝/ {rootD:\Desktop; #vue项目的打包后的distindexindex.html index.htm;}location /素材/ {rootD:\Desktop; #vue项目的打包后的distindexindex.html index.htm;}目录结构...
·
很简单 只要这么配
location /淘宝/ {
root D:\Desktop; #vue项目的打包后的dist
index index.html index.htm;
}
location /素材/ {
root D:\Desktop; #vue项目的打包后的dist
index index.html index.htm;
}
或者(未测试)
location /taotao {
alias C:/D/Project/taotao;
}
目录结构
更多推荐
已为社区贡献12条内容
所有评论(0)