![]() | 1 dimlau 2011-01-06 20:49:43 +08:00 upstream ghs { ip_hash; server ghs.google.com; } server { listen 80; server_name ghs.whatever.name; location / { proxy_redirect off; proxy_set_header Host $host; proxy_pass http://ghs; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_redirect false; } } 然后,你的 blog.iwinux.info 应该设置 CNAME 到 ghs.whatever.name 才对。 |
![]() | 2 dimlau 2011-01-06 20:51:41 +08:00 |
![]() | 3 yoyicue 2011-01-06 20:59:24 +08:00 我是这么解决这个问题的 GAE不绑定域,直接 proxy_pass http://mygae.appspot.com; proxy_set_header Host "mygae.appspot.com"; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
![]() | 4 iwinux OP |
![]() | 8 iwinux OP 尚未解决 = = |
![]() | 9 gonbo 2011-01-07 00:21:58 +08:00 #you8g 是通过生成nginx配置文件,生成后同步nginx配置文件,然后nginx reload,来解决这个问题的。 |
![]() | 10 linsk 2011-01-07 00:30:47 +08:00 via iPod 手机版没有收藏功能,mark 不方便 |
![]() | 11 Platinum 2011-01-07 00:45:51 +08:00 server { listen 80; server_name blog.iwinux.info; location / { proxy_set_header Host yourname.appspot.com; proxy_pass http://ghs.google.com; } } |
![]() | 14 gonbo 2011-01-07 21:23:53 +08:00 都差不多,只是you8g的需要支持大量域名和支持cache |
![]() | 15 laihj 2011-02-23 16:52:09 +08:00 那怎么实现多个域名通过ghs.xxx.com一起绑定呢 我按这种方法,只能实现A记录的绑定,一个vps一个域名,太浪费了 |
![]() | 16 laihj 2011-02-23 16:54:16 +08:00 |
![]() | 17 TheOnly92 2011-02-23 17:16:32 +08:00 godaddy 要增加一个 A 设置。 |
![]() | 18 laihj 2011-02-23 17:36:45 +08:00 diggdb4.us和ghs.diggdb4.us指向同一个ip? |
![]() | 19 fanzeyi 2011-05-12 11:01:05 +08:00 @yoyicue 额 我按照你的方案写的这个.. 但是nginx一直提示 The requested URL / was not found on this server. .... http://gist.github.com/018b74b7af8b5ae54667 |
![]() | 20 fanzeyi 2011-05-12 11:01:59 +08:00 咦 为什么显示的gist不对... http://gist.github.com/018b74b7af8b5ae54667 |
![]() | 21 fanzeyi 2011-05-12 11:03:15 +08:00 |
![]() | 26 nonozone 2012-11-30 16:18:34 +08:00 呃,找到这个帖子,顺便请教下,我按照如上说明整了一个域名ghs.abc.com,直接访问ghs.abc.com出现google的404,这个应该代表ghs代理成功吧,然后我又整了个域名xyz.com cname到ghs.abc.com,为什么变成我自己服务器的默认站点了,而不是到blogger? |