论坛风格切换
  • 3407阅读
  • 0回复

[windows服务器问题]nginx反向代理增加301重定向 [复制链接]

上一主题 下一主题
离线太史慈
 

发帖
766
金币
626
威望
556
只看楼主 倒序阅读 使用道具 楼主  发表于: 2011-12-22
好像无效,很蛋疼.

  1. server {
  2.    listen 80;
  3.    server_name bbs.phpwind.me phpwind.me phpwind.com;
  4.    location /{
  5.    rewrite (.*)$ http://www.phpwind.me permanent;
  6.    proxy_pass http://www.phpwind.me;
  7.    }
  8.    access_log /dev/null;
  9. }


rewrite permanent;要写,再加个proxy_pass
[url=http://www.phpwind.com]phpwind[/url]
快速回复
限100 字节
如果您提交过一次失败了,可以用”恢复数据”来恢复帖子内容
 
提到某人:
选择好友
上一个 下一个