zoukankan      html  css  js  c++  java
  • apache关联php后出现403解决

    本机上运行:127.0.0.1和localhost都没问题,远程登录就不可以了。
    按照网上有些人的说法,把:

    <Directory />

    Options FollowSymLinks

    AllowOverride None

    Order deny,allow

    Deny from all

    Satisfy all

    </Directory>

    改成

    <Directory />

    Options Indexes FollowSymLinks

    AllowOverride None

    Order deny,allow

    Allow from all

    Satisfy all

    </Directory>

    还是不行,后来我把 Directory 带配置路径的这个地方改了,标红的为添加的,标紫色的是屏蔽的:

    <Directory “C:/wamp/www”>

    #

    # 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.2/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:

    # Options FileInfo AuthConfig Limit

    #

    #AllowOverride all

    AllowOverride none

    #

    # Controls who can get stuff from this server.

    #

    # onlineoffline tag – don’t remove

    Order Allow,Deny

    Allow from all

    # Allow from 127.0.0.1

    </Directory>

  • 相关阅读:
    牛客练习赛53 A-E
    算导第二章笔记 (归并排序 之 插入排序优化)
    LightOJ 1372 (枚举 + 树状数组)
    LightOJ 1348 (树链剖分 + 线段树(树状数组))
    Light OJ 1343
    Light OJ 1266
    Light OJ 1085
    CodeForces 671C
    Codeforces Round #352 (Div. 2) (A-D)
    ZOJ1008
  • 原文地址:https://www.cnblogs.com/webu/p/2676015.html
Copyright © 2011-2022 走看看