Nginx Remove WWW And Respond To Both
Nginx Remove WWW And Respond To Both: a task in Terminal-Lego-15k (Harbor dataset). Configure an Nginx server block to respond to both the www and non-www versions of a domain (mydomain.io), while automatically redirecting all www requests to the non-www version using a 301 permanent redirect.
The task
Configure an Nginx server block to respond to both the www and non-www versions of a domain (mydomain.io), while automatically redirecting all www requests to the non-www version using a 301 permanent redirect.
Part of PrimeIntellect/Terminal-Lego-15k.