只需一步,快速开始
server { server_name xxx.com ; rewrite ^(.*) http://www.xxx.com$1 permanent; }
server { server_name xxx.com www.xxx.com; if ($host != 'www.xxx.com' ) { rewrite ^/(.*)$ http://www.xxx.com/$1 permanent; } ... }
举报
原帖由 美国VPS 于 2010-5-30 11:16 发表 http://www.google.com.hk/search? ... mp;oq=&gs_rfai= permanent 改成 last
server { listen 80; server_name bailongjun.com www.bailongjun.com; index index.html index.htm index.php default.html default.htm default.php; root /home/wwwroot/bailongjun; include emlog.conf; location ~ .*\.(php|php5)?$ { fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fcgi.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } access_log off; } server { server_name bailongjun.com ; rewrite ^(.*) http://www.bailongjun.com$1 last; }
本版积分规则 发表回复 回帖后跳转到最后一页
Archiver|手机版|小黑屋|全球主机交流论坛
GMT+8, 2024-6-25 21:39 , Processed in 0.065755 second(s), 8 queries , Gzip On, MemCache On.
Powered by Discuz! X3.4
© 2001-2023 Discuz! Team.