中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

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

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

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

丘北县| 兴山县| 驻马店市| 区。| 彝良县| 富川| 沙田区| 盐池县| 英德市| 荥经县| 镇安县| 亚东县| 诸城市| 那坡县| 舟山市| 灵武市| 迁安市| 石棉县| 康保县| 南澳县| 巴里| 石城县| 灵武市| 肇东市| 灵宝市| 曲靖市| 闻喜县| 桦川县| 南乐县| 平果县| 若尔盖县| 峨眉山市| 郸城县| 松江区| 五常市| 闸北区| 南宫市| 延安市| 灵川县| 玉环县| 库尔勒市|