您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

PHP apach 配置局域网访问问题

2026/4/2 17:28:09发布25次查看
如下配置  ,就是没办法局域网访问 求大神指点
httpd.conf
listen 8088
documentroot e:/test/
options +indexes +followsymlinks +execcgi
    allowoverride all
    order allow,deny
    allow from all
    require all granted
#
    # 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
    require local
httpd-vhosts.conf
servername 192.168.0.119:8088
     documentroot e:/test/chemla/chemla/web
回复讨论(解决方案)  节也要有
allow from all
本机可以访问的话,是不是跟防火墙有关?你可以把服务器防火墙关掉试试
#
    # 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
#    require local
    order deny,allow
    deny from all
    allow from all
documentroot e:/test/chemla/chemla/web
options followsymlinks
allowoverride none
order deny,allow
  allow from all
本机访问 localhost:8088 是可以访问的
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product