您当前的位置: 首页 >  apache

段智华

暂无认证

  • 0浏览

    0关注

    1232博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Apache Awstats 安装配置系列 (2)之 apache部署WEB项目(配置多个地址)

段智华 发布时间:2015-09-19 21:23:19 ,浏览量:0

apache部署WEB项目(配置多个地址)

1、新建目录D:\Apache22\Webapps,作为web项目目录    新建目录D:\Apache22\Webapps100,作为web项目目录 2、在httpd.conf 最后加上 DocumentRoot D:\Apache22\Webapps ServerName 127.0.0.1:80

DocumentRoot D:\Apache22\Webapps100 ServerName 127.0.0.100:80

3、重启 apache D:\Apache22\bin>httpd.exe -k start

4、打开浏览器 http://127.0.0.1/

显示 Forbidden You don't have permission to access / on this server. 5、打开浏览器 http://127.0.0.100/

显示 Forbidden You don't have permission to access / on this server.

6、配置目录访问权限

Options Indexes FollowSymLinks Multiviews AllowOverride All Order Allow,Deny Allow from all

Options Indexes FollowSymLinks Multiviews AllowOverride All Order Allow,Deny Allow from all

7.重启apache

报错 Syntax error on line 194 of D:/Apache22/conf/httpd.conf: Multiple arguments not (yet) supported.

8、重新配置

Options Indexes FollowSymLinks Multiviews AllowOverride All Order Allow,Deny Allow from all

 

Options Indexes FollowSymLinks Multiviews AllowOverride All Order Allow,Deny Allow from all

9.启动成功   http://127.0.0.1/  显示 Index of /

http://127.0.0.100/  显示 Index of /

10.分别建立测试页面放入不同目录

100test.html 放入 D:\Apache22\Webapps100

1test.html 放入 D:\Apache22\Webapps

11、打开页面 测试成功

http://127.0.0.100/100test.html 显示 100 测试成功127.0.0.100

http://127.0.0.1/1test.html 显示 测试成功127.0.0.1

 

 

关注
打赏
1659361485
查看更多评论
立即登录/注册

微信扫码登录

0.0491s