Home  >  Q&A  >  body text

centos nginx 301重定向问题

centos 服务器安装nginx配置301重定向,重启服务依然毫无效果,放在nginx.conf的http区块中,代码如下,求大神!

server{         
                 rewrite ^/(.*)$ http://baidu.com permanent;

        }
阿神阿神2733 days ago500

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-04-26 09:03:04

    I found the problem, nginx was installed incorrectly, just reinstall it and it will be fine

    reply
    0
  • Cancelreply