apache 服务器配置

来源:互联网 发布:加工中心四轴怎么编程 编辑:程序博客网 时间:2024/06/05 11:13

下载地址:http://www.blackdot.be/


打开目录H:\study program\Apache22\conf下的httpd.conf文件,修改一下内容:

ServerRoot " ..."  修改为Apache 安装目录(解压目录)

DocumentRoot "..." 指定项目存放根目录 H:\study program\Apache22\Root(root 文件夹可以改为其他)

将下面的Deny from all 修改为allow from all ,否则启动后无法输入127.0.0.1


下面的Directory 的路径改成和DocumentRoot相同的值

<Directory "H:\study program\Apache22\Root">


安装Apache(cmd 进入 \apache\bin 目录执行 httpd -k install )(卸载用 httpd -k -uninstall )

启动apache (httpd -k start )


0 0
原创粉丝点击