mirror of
https://github.com/torrentpier/torrentpier.git
synced 2024-11-20 20:40:32 -08:00
19 lines
449 B
ApacheConf
19 lines
449 B
ApacheConf
## set default server charset
|
|
AddDefaultCharset UTF-8
|
|
|
|
## folder listing access control
|
|
Options All -Indexes
|
|
|
|
## sitemap and atom rewrite
|
|
RewriteEngine On
|
|
RewriteRule ^sitemap.xml$ sitemap/sitemap.xml [L]
|
|
RewriteRule ^/internal_data/atom/(.*) /atom$1 [L]
|
|
|
|
## deny access to git folder
|
|
RedirectMatch 404 /\\.git(/|$)
|
|
|
|
## deny access to system files
|
|
<FilesMatch "\.(.*sql|tpl|db|inc|log|md|env)|(config|common).php$">
|
|
Require all denied
|
|
</FilesMatch>
|