# 发票管理系统 - Apache 配置
Options -Indexes
DirectoryIndex index.php

# 禁止访问敏感文件
<FilesMatch "^(config\.php|database\.sql|upgrade\.sql|license\.dat|fix_pass\.php|encrypt\.php|AGENTS\.md|README\.md|\.env|composer\.(json|lock)|composer\.phar|.*\.zip)$">
    Require all denied
</FilesMatch>

# 禁止访问 uploads 目录列表
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^uploads/.*\.php$ - [F,L]
</IfModule>

# 字符编码
AddDefaultCharset UTF-8
