Web服务器配置 apache2


问题:

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

Solve:sudo vim /etc/apache2/httpd.conf 加入一行:ServerName localhost

2.因为种种原因,把Apache2的安装文件搞的很乱,反反复复卸载和安装,有些文件一直有残留,配置文件缺失。

  apt-get remove --purge 也不能清空安装文件。后面使用apt-get remove apache2* 搞定,再重新安装配置文件都又回来了

  


To be continue....

你可能感兴趣的:(Web服务器配置 apache2)