Installation on Fedora
sudo dnf install -y nginx installs the server. Enable and start it with sudo systemctl enable --now nginx. The document root is /usr/share/nginx/html.
Firewall and SELinux
Fedora's firewall blocks HTTP by default: open it with sudo firewall-cmd --add-service=http --permanent && sudo firewall-cmd --reload. If Nginx acts as a reverse proxy, SELinux may block outbound connections — allow them with sudo setsebool -P httpd_can_network_connect 1.
Configuration layout
Add server blocks under /etc/nginx/conf.d/*.conf (included by nginx.conf); there is no sites-available pattern by default. Validate with nginx -t, then sudo systemctl reload nginx.