Ravi Sir's Cyber Security Cards › Interview Cards
After changing Nginx config on Amazon Linux lab, a safe habit is:
After changing Nginx config on Amazon Linux lab, a safe habit is: A. Reboot the hypervisor twice B. Test config (nginx -t) then sudo service nginx reload or restart as appropriate C. chmod 777 the entire /etc D. Disable the access log forever B. Test config (nginx -t) then sudo service nginx reload

Read card text
What this card says
Options
A. Reboot the hypervisor twice
B. Test config (nginx -t) then sudo service nginx reload or restart as appropriate
C. chmod 777 the entire /etc
D. Disable the access log forever
Correct answer
B. Test config (nginx -t) then sudo service nginx reload or restart as appropriate
Why
A bad config can crash the site on restart, so the safe habit is to test with nginx -t first, then reload or restart only if the test passes.
Learn more in the lesson: 48.7 CEH-Style Practice Questions – Set B (Modules 11–20)