mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
update .htaccess
This commit is contained in:
parent
8e926b1208
commit
ac1df904ca
3 changed files with 18 additions and 0 deletions
|
|
@ -11,6 +11,19 @@
|
|||
|
||||
|
||||
# In Nginx set something like this:
|
||||
|
||||
# Deny access to some files and folders
|
||||
#location ~ ^/(db|includes)/ {
|
||||
# deny all;
|
||||
#}
|
||||
#location ~ /\.ht {
|
||||
# deny all;
|
||||
#}
|
||||
#location ~* ^/ext/.*\.(json|md)$ {
|
||||
# deny all;
|
||||
#}
|
||||
|
||||
# Optional
|
||||
# location /api/ {
|
||||
# rewrite ^/api/(.*) /api.php/$1 last;
|
||||
# }
|
||||
|
|
|
|||
5
src/ext/.htaccess
Normal file
5
src/ext/.htaccess
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<FilesMatch "\.(json|md|MD)$">
|
||||
Order deny,allow
|
||||
Deny from all
|
||||
</FilesMatch>
|
||||
|
||||
0
src/ext/index.html
Normal file
0
src/ext/index.html
Normal file
Loading…
Reference in a new issue