DocumentRoot "D:/wamp/www"# # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Allow from all Satisfy all </Directory>
忘记说了,在 httpd.conf 文件
查看你的 httpd.conf 中的 Listen
你在自己的机器上输入http://192.168.0.21/什么效果?
## Controls who can get stuff from this server.## onlineoffline tag – don’t removeOrder Allow,DenyAllow from all# Allow from 127.0.0.1</Directory>在httpd.conf 改一下 红色部分是加上去的
ping一下试试
再试试wamp5单击任务栏图标在菜单有一个“切换的离线状态”,“切换的在线状态”。
apache服务器启动了么?
如果在本地访问正常的话,局域网应该也是可以正常访问的。加上端口号试一下。
http://192.168.0.21:8080/zentaopms/www/index.php
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
是这样的么。
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
Satisfy all
</Directory>