mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
22 lines
494 B
ApacheConf
22 lines
494 B
ApacheConf
## index file
|
|
DirectoryIndex index.php
|
|
|
|
## set default server charset
|
|
AddDefaultCharset UTF-8
|
|
|
|
## folder listing access control
|
|
Options All -Indexes
|
|
|
|
## sitemap and atom rewrite
|
|
RewriteEngine On
|
|
RewriteRule ^sitemap.xml$ internal_data/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)|(config|common).php$">
|
|
deny from all
|
|
</FilesMatch>
|