nginx rewrite跳转http问题
nginx吧
全部回复
仅看楼主
level 2
Ricardo0408 楼主
系统由https登陆,系统对页面预览时,要去跳转http,一下为配置。
location /preview {
root /data/WCMData1/;
proxy_set_header Host $Host;
proxy_set_header X-Forwarded-For $remote_addr;
expires -1;
internal;
error_page 404 =200 @backend;
index index.html index.htm index.shtml;
rewrite ^(.*)$ http://$server_name$request_uri;
}
我在最后做了rewrite命令,为什么不生效呢
2016年06月23日 03点06分 1
level 2
Ricardo0408 楼主
求不沉
2016年06月23日 03点06分 2
level 2
Ricardo0408 楼主
不要沉,来大神
2016年06月23日 03点06分 3
level 2
Ricardo0408 楼主
不要沉啊 在线等
2016年06月23日 03点06分 4
1