wampserver 在 win7 权限配置 配置问题

wampserver x32  在  win7  x 32   下,开启局域网  通过端口访问, 可以这么设置:


打开 apache2.2 的配置文件  httpd.conf   , 往最 底部添加:


<VirtualHost *:84> 
ServerAdmin admin@system 
#ServerName *:84
DocumentRoot "E:/www/Code" 
DirectoryIndex index.html index.htm index.php 
<Directory "E:/www/Code"> 
        Options Indexes FollowSymLinks 
        AllowOverride None
        Order allow,deny 
        Allow from all 
</Directory> 
</VirtualHost>



集成环境  wampserver x32  在  win7  x 64  系统下 ,  局域网通过 端口访问  如 :  192.168.1.86:83    , 常常会出现死机现象, 

这时我们需要 64位的 wampserver 来安装了    安装后, phpinfo 出来如看到  php版本为 64位的,就没多大问题了


接着配置 apache2.4 的配置文件  httpd.conf


#Include conf/extra/httpd-vhosts.conf

修改为

Include conf/extra/httpd-vhosts.conf

#Listen 0.0.0.0:80
Listen 80
Listen 81

打开 httpd-vhosts.conf  配置:

<VirtualHost *:85>
 ServerAdmin welcome@www.jbxue.com
 DocumentRoot "d:/wamp/www/wap"
 ServerName 85
 ErrorLog "logs/jbxue.localhost-error.log"
 DirectoryIndex index.html index.htm index.php
 CustomLog "logs/jbxue.localhost-access.log" common
 <Directory "d:/wamp/www/wap">
  Options FollowSymLinks
  AllowOverride All
  Require all granted
 </Directory>
</VirtualHost>

如出现权限访问问题,请修改:


AllowOverride None

为

AllowOverride All



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值