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 [email protected]
 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 篇原創文章 · 獲贊 18 · 訪問量 1萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章