您的位置:首页 > 运维架构 > Apache

ubuntu apache2 配置问题

2007-05-30 13:49 344 查看
1.apache2.conf 是主配置文件,httpd.conf 用户配置文件
2.虚拟目录在 httpd.conf 中
<VirtualHost *>
DocumentRoot "路径"
ServerName 名称
<Directory "路径"> allow from all Options +Indexes </Directory>
</VirtualHost>

3.根设置(默认主目录)在
/etc/apache2/sites-available/default

4.重启命令
sudo /etc/init.d/apache2 restart
或者
cd /etc/init.d
sudo apache2 -k restart
stop 停止;start 启动
5.日志文件在 /var/log/apache2/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: