只需一步,快速开始
举报
wdlth 发表于 2012-7-7 22:22 _是泛解析,两个都不是一个意思。
RewriteCond %{HTTP_HOST} nginx.org RewriteRule (.*) http://www.nginx.org$1
server { listen 80; server_name www.nginx.org nginx.org; if ($http_host = nginx.org) { rewrite (.*) http://www.nginx.org$1; } ... }
server { listen 80; server_name nginx.org; return 301 http://www.nginx.org$request_uri; } server { listen 80; server_name [url]www.nginx.org; ... }
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2025-1-16 16:11 , Processed in 0.060076 second(s), 5 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.