Using Nginx on FreeBSD, wondering what's the difference between
events {
worker_connections 200;
}
and just worker_connections 200;
by itself?
Or
server {
listen 80;
location / {
return 301 https://$host$request_uri;
}
}
vs
server {
listen 80;
return 301 https://$host$request_uri;
location /two {
return 301 https://something else?;
}
}
I've seen both used on various examples. Are they interchangeable and only differ in scope?
Could I omit the http
parent block, and only have the server
blocks for example?
Thanks!
Oh and the specific file I've been editing is /usr/local/etc/nginx/nginx.conf