例如:a.example.com/index.html
对应 /a-direcoty/index.html
,而b.example.com/index.html
对应 /b-direcoty/index.html
例如:a.example.com/index.html
对应 /a-direcoty/index.html
,而b.example.com/index.html
对应 /b-direcoty/index.html
nginx配置文件可以设置server段,在server中设置server_name来指定域名。所以你这种情况就设置两个server,分别是两个域名,然后再设置root为具体目录
2 回答1.1k 阅读
1 回答894 阅读✓ 已解决
1 回答760 阅读
1 回答997 阅读
750 阅读