ngix/nfw(week 11) Flashcards
What is a web server?
Software that is run on a hardware server that serves up documents over the internet (generally using HTTP)
Where is the nginx configuration file?
/etc/nginx/nginx.conf
What is a server block?
It allows you to setup multiple webservers in a single server
What are the components of a serverblock?
listen = which ports to listen on
server_name = domain name or ip address of incoming traffic
root: dir contains content that you want to server
index: specifies name of index or root document
location: specified what should happen when user navigates to that part
how do you test whether nginx works?
sudo nginx -t
how do you check the status of ufw?
sudo ufw status verbose
What are the commands for configuring ufw?
sudo ufw allow
sudo ufw deny
sudo ufw limit
How do you enable ufw?
sudo ufw enable
How do you setup a directory index with nginx?
“autoindex on;” as a directive under /files location
Where is useradd located?
/etc/default/useradd