nginx_force_nonwww
You will need 2 server blocks for this:
server { listen 80; server_name example.org; } server { listen 80; server_name www.example.org; return 301 $scheme://example.org$request_uri; }
nginx_force_nonwww.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1