Get the App
SLTechnology News&Howtos  ›  Network Security  › 

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

Shulou Source: shulou.com Published: 2022-06-01 04:51:34 10月04日 Update

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

Tags: Files questions content domain names situations servers steps websites services Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Linux vpn Apple Docker