sudo apt-get install apache2
根目录:/var/www
启动服务
# /etc/init.d/apache2 start
or
$ sudo /etc/init.d/apache2 start
配置文件是 /etc/apache2/apache2.conf
经过搜索,发现在 /etc/apache2/sites-enabled/000-default中,里面有这样的内容:
NameVirtualHost *
<VirtualHost *>
ServerAdmin webmaster@localhostDocumentRoot /var/www/
……