Complete the code to specify the main configuration file for nginx.
nginx -c [1]The -c option tells nginx which configuration file to use. The main config file is usually /etc/nginx/nginx.conf.
Complete the command to test nginx configuration for syntax errors.
nginx [1]-v which shows version info.-s which sends signals to nginx.-h which shows help.The -t option tests the nginx configuration for syntax errors without starting the server.
Fix the error in the command to reload nginx after config changes.
nginx -[1] reload-r which is not a valid option.-t which tests config but does not reload.-v which shows version.The -s option sends signals to the nginx master process. To reload, use nginx -s reload.
Fill both blanks to create a dictionary of server names and their root directories from a list.
servers = {name: [1] for name in server_names if name [2] 'example.com'}This dictionary comprehension maps each server name to its root directory path. It includes only names not equal to 'example.com'.
Fill all three blanks to filter and transform nginx log entries into a dictionary.
log_summary = [1]: int([2]) for [3] in logs if 'error' in [3]
This comprehension creates a dictionary with key 'error_count' and values as the integer of the third word in each log entry containing 'error'.