Task: Configure Nginx to Handle Both HTTP (Port 80) and HTTPS (Port 443) Traffic
Task: Configure Nginx to Handle Both HTTP (Port 80) and HTTPS (Port 443) Traffic: a task in Terminal-Lego-15k (Harbor dataset). You need to configure an Nginx server to handle both HTTP (port 80) and HTTPS (port 443) traffic for the same domain. The challenge is that a single server block with…
The task
You need to configure an Nginx server to handle both HTTP (port 80) and HTTPS (port 443) traffic for the same domain. The challenge is that a single server block with both `listen 80` and `listen 443 ssl` directives causes issues because SSL options affect non-SSL traffic.
Part of PrimeIntellect/Terminal-Lego-15k.