亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

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

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

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

监利县| 庐江县| 乌兰察布市| 沂水县| 桑植县| 东方市| 延边| 高雄县| 会理县| 陇西县| 贵南县| 平塘县| 嘉鱼县| 乐清市| 盐城市| 平昌县| 迁西县| 兴业县| 阿巴嘎旗| 汶川县| 包头市| 上林县| 绥宁县| 南城县| 玉山县| 全椒县| 泉州市| 黑山县| 连南| 广州市| 衢州市| 曲麻莱县| 老河口市| 阜城县| 韶山市| 乌兰察布市| 石景山区| 桐柏县| 凤山县| 禄劝| 谷城县|