centos nginx 301重定向问题
阿神
阿神 2017-04-26 09:01:04
0
1
552

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

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

        }
阿神
阿神

闭关修行中......

reply all(1)
刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template