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