PHP cURL doesn't see the /etc/hosts file

前端 未结 2 538
抹茶落季
抹茶落季 2021-02-08 12:53

I\'m having troubles on making the PHP cURL library recognize the alias I created in my /etc/hosts file.

This is what I have in my /etc/hosts f

2条回答
  •  太阳男子
    2021-02-08 13:55

    You probably run PHP on that apache server, and there you don't have the hosts file entry.

提交回复
热议问题