Fix denied Roundcube nginx locations
This commit is contained in:
parent
252c35c66e
commit
5210db9e8b
|
@ -26,9 +26,22 @@
|
||||||
index index.php;
|
index index.php;
|
||||||
alias /usr/local/lib/roundcubemail/;
|
alias /usr/local/lib/roundcubemail/;
|
||||||
}
|
}
|
||||||
location ~ /mail/config/.* {
|
location ~ ^/mail/(config|temp|logs)/ {
|
||||||
# A ~-style location is needed to give this precedence over the next block.
|
deny all;
|
||||||
return 403;
|
}
|
||||||
|
location ~ ^/mail/(README|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
location ~ ^/mail/(bin|SQL)/ {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
location ~ ^/mail/(.+\.md)$ {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
location ~ ^/mail/\. {
|
||||||
|
deny all;
|
||||||
|
access_log off;
|
||||||
|
log_not_found off;
|
||||||
}
|
}
|
||||||
location ~ /mail/.*\.php {
|
location ~ /mail/.*\.php {
|
||||||
# note: ~ has precendence over a regular location block
|
# note: ~ has precendence over a regular location block
|
||||||
|
|
Loading…
Reference in New Issue