Home > Backend Development > PHP Tutorial > PHP apach 配置局域网访问问题

PHP apach 配置局域网访问问题

WBOY
Release: 2016-06-23 13:05:34
Original
1212 people have browsed it

如下配置  ,就是没办法局域网访问 求大神指点
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 是可以访问的

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template