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
- 1 回答
- 0 關(guān)注
- 209 瀏覽
添加回答
舉報(bào)