wampserver安装配置。解决不能访问项目的问题。局域网不能访问的问题

解决办法,都是修改C:\wamp\bin\apache\apache2.4.9\conf下的httpd.conf文件。

1、解决不能访问项目的问题,只能访问到localhost

     开启rewrite_module;

Apache -->Apache   Modules -->   rewrite_module


2、解决局域网不能访问的问题

    修改2个 <Directory>

1)、<Directory />
          Options FollowSymLinks
    AllowOverride None
      Order deny,allow
     Allow from all
      Satisfy all
</Directory>


2、 

     <Directory "c:/wamp/www/">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.4/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks


    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   AllowOverride FileInfo AuthConfig Limit
    #
    AllowOverride all


    #
    # Controls who can get stuff from this server.
    #


#   onlineoffline tag - don't remove
    Allow from all 
</Directory>


3、修改配置出问题导致要重装的时候,切记,一定要,一定要,备份数据库,备份数据库,备份数据库。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值