The default install for Mongodb does not configure log rotation.
In /etc/logrotate.d/mongod
/var/log/mongodb/*.log {
daily
rotate 30
compress
dateext
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| # redirect http to https | |
| set $redirect ""; | |
| if ($http_x_forwarded_proto != 'https') { | |
| set $redirect "1"; | |
| } | |
| if ($http_user_agent !~* ELB-HealthChecker) { | |
| set $redirect "${redirect}1"; | |
| } | |
| if ($http_host ~ "your-nifty-domain.com") { | |
| set $redirect "${redirect}1"; |