1
senghoo 2014-04-24 18:36:56 +08:00 1
临时302
永久301 |
2
blacktulip 2014-04-24 18:40:37 +08:00 1
server {
listen 80; server_name www.aaa.com; return 301 $scheme://www.bbb.com$request_uri; } 空手写出请自己测试... |
3
hiay OP @blacktulip 能隐藏跳转地址不?
|
5
blacktulip 2014-04-24 19:54:32 +08:00
|
6
hiay OP @blacktulip 是的
|
7
blacktulip 2014-04-24 19:57:07 +08:00 1
@hiay 那就不叫跳转了。你这需求我唯一能想到的方法就是用一个大 frame 框住...
|
8
sneezry 2014-04-24 19:59:46 +08:00
反向代理
|
9
blacktulip 2014-04-24 20:06:06 +08:00 1
@sneezry 额,是噢,被搞混了
server { listen 80; server_name www.aaa.com; location / { proxy_pass www.bbb.com; } } 大概这个样子 |
10
lm902 2014-04-24 20:44:35 +08:00 1
var req = HttpWebRequest.Create("http://www.bbb.com/mulv/pic.jpg");
var resp = req.GetResponse(); resp.GetResponseStream().CopyTo(context.Response.OutputStream); resp.Close(); context.Response.Close(); 差不多就是这样子了 |