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

ubuntu LAMP apache 配置问题

2009-07-01 10:44 363 查看
几个概念(以下文件默认路径为 /etc/apache2/):

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/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: