Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Apache2: Could not reliably determine the server's fully qualified domain name

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

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

Problem situation:

[c-sharp] view plaincopy

$sudo / etc/init.d/apache2 restart

* Restarting web server apache2

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

Resolution steps:

To solve this problem, you need to edit the following httpd.conf file, open it, and edit it as follows:

[c-sharp] view plaincopy

Sudo gedit / etc/apache2/httpd.conf

The default httpd.conf is an empty file. Now add the following content to it:

[c-sharp] view plaincopy

ServerName localhost

You can change it to your own website domain name, such as www.baidu.com.

Save and exit.

Finally, restart the server:

[c-sharp] view plaincopy

Sudo / etc/init.d/apache2 restart

Http://blog.csdn.net/firstboy0513/article/details/5866133

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report