日志显示”AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1. Set the ‘ServerName’ directive globally to suppress this message”和”Syntax error on line 1 of /etc/apache2/sites-enabled/example.com.conf: Invalid command ‘6.1.3 解决方案检查Apache配置文件语法:sudo apachectl configtest结果显示语法错误,提示VirtualHost指令无效。检查虚拟主机配置文件:sudo nano /etc/apache2/sites-available/example.com.conf发现配置文件中缺少必要的模块加载指令。修复配置文件,确保加载了必要的模块:LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule rewrite_module modules/mod_rewrite.so