• 技术文章 >后端开发 >php教程

    PHP apach 配置局域网访问问题

    2016-06-23 13:05:34原创501
    如下配置 ,就是没办法局域网访问 求大神指点
    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 是可以访问的

    声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理
    上一篇:Laravel 表单验证 下一篇:在Webstorm/Phpstorm中设置连接FTP,上传到服务器
    线上培训班

    相关文章推荐

    • 你知道这个PHP命令行选项解析库(pflag)吗?• 带你看懂PHP中的class定义类与成员属性方法• PHP中如何才能将时间日期格式化?怎么计算时间差?• 一定搞得懂PHP中如何添加图片水印• 最详细的教你PHP时间戳与日期时间的转换

    全部评论我要评论

  • 取消发布评论发送
  • 1/1

    PHP中文网