V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  jsjcjsjc  ›  全部回复第 22 页 / 共 22 页
回复总数  424
1 ... 13  14  15  16  17  18  19  20  21  22  
2016-06-25 17:23:57 +08:00
回复了 jsjcjsjc 创建的主题 NGINX nginx 怎么配置 https 跳转到另外一个网址
@lslqtz 你的意思是只有 return 301 或者 js 的跳转才不会留下 refer 吗?可以根据 2 楼我的回复给我一个例子吗。。没明白啊~~~非常感谢 ;-)
2016-06-25 17:21:54 +08:00
回复了 jsjcjsjc 创建的主题 NGINX nginx 怎么配置 https 跳转到另外一个网址
@HLT 我有个域名有很多自然流量,但是已经被 google 列入黑名单了,所以需要跳转但又不能让 google 知道 refer~~
2016-06-25 17:20:34 +08:00
回复了 jsjcjsjc 创建的主题 NGINX nginx 怎么配置 https 跳转到另外一个网址
@raphaelsoul 你这个是和我 2 楼写的是一个意思吗?没看出来不一样啊 ;-)
2016-06-25 09:13:29 +08:00
回复了 jsjcjsjc 创建的主题 NGINX nginx 怎么配置 https 跳转到另外一个网址
@ryd994 server
这样写可以吗?
{
listen 80;
server_name g.getpocket.net;
location / {
rewrite ^/(.*)$ https://g.getpocket.net$1 permanent;
}
}

server {
server_name g.getpocket.net;
listen 443;

ssl on;
ssl_certificate /etc/letsencrypt/live/g.getpocket.net/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/g.getpocket.net/privkey.pem;

location / {
rewrite ^/(.*)$ http://baidu.com$1 permanent;
}
}
1 ... 13  14  15  16  17  18  19  20  21  22  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   991 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 19:23 · PVG 03:23 · LAX 12:23 · JFK 15:23
Developed with CodeLauncher
♥ Do have faith in what you're doing.