mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 11:47:01 +05:30
Caddyfile: protect data dir
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
914f8aa111
commit
128d0a6140
1 changed files with 5 additions and 0 deletions
|
@ -96,6 +96,11 @@ https://mail.msfjarvis.dev {
|
|||
if {path} ends_with /
|
||||
to {dir}/index.php
|
||||
}
|
||||
status 403 /forbidden
|
||||
rewrite {
|
||||
r ^/.*/data/?$
|
||||
to /forbidden
|
||||
}
|
||||
}
|
||||
|
||||
https://mc.msfjarvis.dev {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue