我删除了这个文件000-default.conf,并把我自己的。 在默认的apache2.conf行219
IncludeOptional sites-enabled/*.conf
不过,当我重新启动Apache
apache2: Syntax error on line 219 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/sites-enabled/000-default.conf: No such file or directory Action 'restart' failed. The Apache error log may have more information.
我拥有的是:
my-pc sites-available # ls -l total 12 -rw-r--r-- 1 root root 6437 Jan 7 2014 default-ssl.conf -rw-r--r-- 1 root root 271 Aug 29 22:12 mysite.conf
我的猜测是你删除了/etc/apache2/sites-available/000-default.conf
但把/etc/apache2/sites-available/000-default.conf
的符号链接,现在是一个死链接。 是这样吗?
我想你已经删除了000-default.conf
文件,但符号链接仍然可用。
所以你需要禁用它。
sudo a2dissite 000-default.conf