nginx without redirection from www to www domain name
Here, if it is a single redirection, use redirect, if it is a permanent jump, use permanent, here use permanent
{
listen
server_name xxx.com www.xxx.com; Index index.html index.php; root/data/www/wwwroot; If ($ http_host! ~ "^www.xxx.com $") {E REWRITE ^(.*) Http://www.xxx.com $1 permanent;
}
... ... }
Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.