
Web服务器2.2.2.3上有两个目录,分别存放了两个网站,现在想要实现1.abc.com指向目录web/1/index.html,2.abc.com指向目录web/2/index.html
请问,nginx的conf文件应该怎么写?
https://blog.csdn.net/annita2019/article/details/124033288
``` location /路径1 { proxy_server=http://路径URL1 } location /路径2 { proxy_server=http://路径URL2 } ```
没那么复杂吧,抛开2.2.2.2反向,访问2.2.2.3,实现1.abc.com指向目录web/1/index.html,2.abc.com指向目录web/2/index.html 这个能实现吧,只是root 目录不同,加个反向2.2.2.2 又有什么关系呢,不用在 2.2.2.2 上做文章啊