https://www.cnblogs.com/luxiaoyao/p/10034009.html windows系统
https://www.cnblogs.com/scale/p/11423374.html linux系统
附上一个自己的http的nginx.conf服务代码
server {
listen ****;
server_name localhost;
charset utf-8;
location /aaaa {
root /usr/local/bbb;
index index.html index.htm;
try_files $uri $uri/ /aaaa/index.html;
}
location /aaaa {
root /usr/local/bbb;
index index.html index.htm;
try_files $uri $uri/ /aaaa/index.html;
}
}
server {
listen ****;
server_name localhost;
charset utf-8;
location /aaaa {
root /usr/local/bbbb;
index index.html index.htm;
try_files $uri $uri/ /aaaa/index.html;
}
}