设置是:两个应用程序使用 apache 配置中的 vhost 条目托管在同一 linux 服务器上。说 :
和
他们都有一个功能,他们可以向第三个 url 进行服务器端 http 请求(使用 php cURL / file_get_contents):
现在主机文件'/etc/hosts'中有一个主机条目
xx.xx.xx.xx apis.example.com
这仅适用于 greatapp.example.com 代码,不适用于 superapp.example.com。
如何配置服务器,让greatapps.example.com使用主机条目,但superapp.example.com使用apis.example.com的公共 ip