Service httpd error

不羁岁月 提交于 2019-12-13 06:10:53

问题


I have a centOS virtual machine with 3 virtual hosts. It worked fine until this moment when I lost access to the dns server. Now the hosts can't be resolved. Can any1 tell me if I can configure some static routes or something to the virtual hosts?

Print screen with the httpd response:

P.S. I would prefere not to configure a DNS server since the old one will start tomorrow again.


回答1:


In your /etc/hosts you can map IP addresses to hostnames:

127.0.0.1 example.com
127.0.0.1 example.net
// etc...


来源:https://stackoverflow.com/questions/4814515/service-httpd-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!