V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  xzpjerry731  ›  全部回复第 29 页 / 共 29 页
回复总数  571
1 ... 20  21  22  23  24  25  26  27  28  29  
2016-05-16 19:23:16 +08:00
回复了 xzpjerry731 创建的主题 NGINX nginx 怎么把网站反代到目录?
@lslqtz 我也觉得,网上都是用 location /{}这样的,汗,干脆注册多个域名好了
2016-05-16 15:58:59 +08:00
回复了 xzpjerry731 创建的主题 NGINX nginx 怎么把网站反代到目录?
@lslqtz 后面加了‘/’还是不行,请求是在 nginx 的 LOG 里看吗? 我看了下都是 get “ xxx ”这种
2016-05-15 12:59:21 +08:00
回复了 xzpjerry731 创建的主题 NGINX nginx 怎么把网站反代到目录?
@beginor 好主意!之前没想到
2016-05-15 12:58:47 +08:00
回复了 xzpjerry731 创建的主题 NGINX nginx 怎么把网站反代到目录?
@lslqtz 嗯。明天试试,我好像之前试过这样写没有用(但好像最后没有加 /这个在后面)
2016-05-14 19:02:17 +08:00
回复了 xzpjerry731 创建的主题 NGINX nginx 怎么把网站反代到目录?
@lslqtz 能贴下你的配置吗? 我现在是反代后谷歌主页能打开,但是搜索过去就 404,我感觉应该是 proxy_redirect 的问题, 搜了语法规则还是不太懂 T_T
2016-05-14 15:20:26 +08:00
回复了 xzpjerry731 创建的主题 NGINX nginx 怎么把网站反代到目录?
@maxsec 反代谷歌不用缓存吧= =
2016-05-14 12:35:33 +08:00
回复了 xzpjerry731 创建的主题 NGINX nginx 怎么把网站反代到目录?
@babytomas 是这样? 并不行的说

location ^~/google{

rewrite ^/ https://$server_name/google/;

}

location ^~/google/{

proxy_redirect https://www.google.com/ /;
proxy_pass https://yoyo/;
proxy_set_header Host www.google.com;
proxy_set_header User-Agent $http_user_agent;
proxy_set_header Referer http://www.google.com;
proxy_set_header Accept-Encoding "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
}
2016-05-11 15:10:54 +08:00
回复了 egonetworks 创建的主题 推广 我们的活动没那么复杂,留言抽奖送 T 恤
男款 S 码 谢谢
2016-05-04 21:19:09 +08:00
回复了 YUX 创建的主题 问与答 各位有什么工具用来压缩图片嘛?
pied piper (斜眼笑)

同样用 PS 压不失真
2016-05-04 21:15:26 +08:00
回复了 xzpjerry731 创建的主题 问与答 有没有同时搜索多个商品的网站
果然没有空行 T_T
1 ... 20  21  22  23  24  25  26  27  28  29  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2877 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 11:32 · PVG 19:32 · LAX 04:32 · JFK 07:32
Developed with CodeLauncher
♥ Do have faith in what you're doing.