ubuntu14.04apache2出现Could not reliably determine the server’s fully

Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName


在etcapache2/sites-available中顶部加ServerName localhost

ServerName localhost

# The ServerName directive sets the request scheme, hostname and port that

# the server uses to identify itself. This is used when creating

# redirection URLs. In the context of virtual hosts, the ServerName

# specifies what hostname must appear in the request's Host: header to

# match this virtual host. For the default virtual host (this file) this

# value is not decisive as it is used as a last resort host regardless.

# However, you must set it for any further virtual host explicitly.

#ServerName www.example.com

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 7,962评论 0 0
  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 14,602评论 5 6
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 136,159评论 19 139
  • 文/風雨綫 时间/ 2017年5月1日 昨晚,在新闻里看到一句话,说“在兰州,总有一碗面让你流连忘返”,便想到一大...
    風雨綫阅读 5,205评论 4 5
  • 要减肥的节奏 午时的阳光带着热气吹进莲花的屋内,夏天到了,虽然还没有热得坐不住,但已经开始热了,五月的天气,好象一...
    蓝莲花0阅读 3,214评论 0 1

友情链接更多精彩内容