91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

php出現403錯誤怎么辦

發布時間:2020-07-11 16:28:00 來源:PHP中文網 閱讀:1682 作者:Leah 欄目:編程語言

我們使用http://localhost/test.php進行本機測試,沒有發現問題,在內網測試時,使用IP地址進行訪問,如:http://10.10.50.195/test.php,就出現了403錯誤這個問題。解決這個問題的方法如下:

1、首先修改一下php的配置文件httpd.conf

在原有的位置文件中找到配置節

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>

修改成

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
      # Deny from all
    Allow from all
      #允許所有訪問
    Satisfy all
</Directory>

還有

<Directory "D:/Wamp5/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
    #
    # Controls who can get stuff from this server.
    #
      # onlineoffline tag - don't remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
</Directory>

修改成

<Directory "D:/Wamp5/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
    #
    # Controls who can get stuff from this server.
    #
      # onlineoffline tag - don't remove
    Order Deny,Allow
      # Deny from all
      # Allow from 127.0.0.1
    Allow from all
</Directory>

2、然后保存,重啟服務,再訪問就解決了這個問題。


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

宣化县| 常山县| 彩票| 临漳县| 攀枝花市| 信宜市| 鹤峰县| 萝北县| 咸阳市| 洪湖市| 禄丰县| 喜德县| 兴文县| 开原市| 长沙市| 潮安县| 牡丹江市| 五常市| 广昌县| 六盘水市| 嘉荫县| 合阳县| 中超| 尤溪县| 九江市| 诏安县| 江陵县| 鹰潭市| 房山区| 隆德县| 卓资县| 邛崃市| 巴中市| 寿阳县| 凯里市| 哈尔滨市| 阜新| 德兴市| 金堂县| 微博| 贵阳市|