Options -Indexes
DirectoryIndex index.php
AcceptPathInfo On
AddType application/manifest+json .webmanifest

# Keep PHP's request limits above PSCOT's 50 MB document limit.
php_value upload_max_filesize 64M
php_value post_max_size 64M

<IfModule mod_rewrite.c>
RewriteEngine On
# PSCOT v1.0.0 moved the Librarian interface from /admin/ to /desk/.
RewriteRule ^admin(?:/(.*))?$ desk/$1 [R=302,L,NE]
RewriteRule ^(?:app|bin|database|templates)(?:/|$) - [F,L,NC]
RewriteRule (^|/)\. - [F,L]
</IfModule>

<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "SAMEORIGIN"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "camera=(), microphone=(), geolocation=()"
</IfModule>

<FilesMatch "\.(?:sqlite3?|db|ini|log|sql|md)$">
Require all denied
</FilesMatch>
