首 页文章中心

Linux学习网

您的位置Linux学习网 > Linux服务器应用 > 文章内容

ubuntu apache2 配置问题

作者:佚名  来源:不详  发布时间:2007-5-30 8:04:00
1.apache2.conf 是主配置文件,httpd.conf 用户配置文件
2.虚拟目录在 httpd.conf 中

DocumentRoot "路径"
ServerName 名称
allow from all Options +Indexes

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/
收藏本页到: 365Key | del.icio.us | | 添加到雅虎收藏+
  • 网站帮助 - 广告合作 - 网站地图