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

# 禁止访问敏感文件
<FilesMatch "^(config\.php|database\.sql|\.env|composer\.(json|lock))$">
    Require all denied
</FilesMatch>

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

# 字符编码
AddDefaultCharset UTF-8
