www跳转到主域名

server {
    listen 80;
    server_name www.tool.lu;

    access_log off;
    error_log off;

    return 301 https://tool.lu$request_uri;
}server {
    listen 80;