第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

帶有自動(dòng)前置 + ErrorDocument + 選項(xiàng)的 .htaccess 文件中的錯(cuò)誤

帶有自動(dòng)前置 + ErrorDocument + 選項(xiàng)的 .htaccess 文件中的錯(cuò)誤

PHP
Qyouu 2021-06-01 09:35:07
我有這個(gè).htaccess:Options -IndexesErrorDocument 403 /server/403.phpphp_value auto_prepend_file "./server/conferror.php"但它向我發(fā)送了這個(gè)錯(cuò)誤:警告:未知:無(wú)法打開(kāi)流:第 0 行的未知中沒(méi)有此類(lèi)文件或目錄致命錯(cuò)誤:未知:在第 0 行的未知中打開(kāi)所需的 './server/conferror.php' (include_path='C:\xampp\php\PEAR') 失敗如果我刪除ErrorDocument線(xiàn)它工作得很好。如果我設(shè)置ErrorDocument并刪除Options行它工作正常但不阻止目錄導(dǎo)航...此文件是 php 錯(cuò)誤的處理程序,需要通過(guò) .htaccess php_value auto_prepend_file "./server/conferror.php"我如何才能.htaccess防止導(dǎo)航目錄和輸出同時(shí)文件ErrorDocument并保留前置文件。
查看完整描述

1 回答

?
青春有我

TA貢獻(xiàn)1784條經(jīng)驗(yàn) 獲得超8個(gè)贊

用這個(gè)代碼解決:


# Control de Errores

php_value auto_prepend_file "server/conferror.php"

# Disable directory browsing 

Options -Indexes

# Hide the contents of directories

IndexIgnore *

# Hide files of type .png, .zip, .jpg, .gif and .doc from listing

IndexIgnore *.png *.zip *.jpg *.gif *.doc *.pdf *.txt *.jpeg *.log

# Allow access to php files

<Files *.log>

    deny from all

</Files>

<Files *.php>

    Order Deny,Allow

    Deny from all

    Allow from 127.0.0.1

</Files>

<Files index.php>

    Order Allow,Deny

    Allow from all

</Files>

<Files signal.php>

    Order Allow,Deny

    Allow from all

</Files>

# Mal Request

ErrorDocument 400 server/400.html

# No Autorizado

ErrorDocument 401 server/401.html

# Acceso Prohibido

ErrorDocument 403 server/403.html

# No Encontrada

ErrorDocument 404 server/404.html

# Error interno del Servidor

ErrorDocument 500 server/500.html


查看完整回答
反對(duì) 回復(fù) 2021-06-04
  • 1 回答
  • 0 關(guān)注
  • 209 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢(xún)優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)