1 回答
TA贡献1784条经验 获得超8个赞
用这个代码解决:
# 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 关注
- 192 浏览
添加回答
举报