Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以在我的主机文件中执行类似于 apache Include 的操作吗?
/etc/hosts 127.0.0.1 localhost 包括 /something/test-hosts
/something/tests-hosts 127.0.0.1 test.local
所以要回答这个问题,不,你不能在主机文件中使用包含