V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
IP.IM 查询准确的IP地址信息
支持curl 提供全球IP超高准确度位置信息查询
Promoted by vsean
thenewbie
V2EX  ›  Google App Engine

.hcaccess做反向代理blogger不成功求助。。。

  •  
  •   thenewbie · 2011-10-27 08:44:07 +08:00 via Android · 6483 次点击
    这是一个创建于 5008 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在虚拟主机上,参照: v2ex.com/t/6225 ,弄好后还需要翻过去才看到。。。why?
    27 条回复    1970-01-01 08:00:00 +08:00
    thenewbie
        1
    thenewbie  
    OP
       2011-10-27 12:11:35 +08:00
    @liuhang0077 求指教...
    thenewbie
        2
    thenewbie  
    OP
       2011-10-27 12:56:25 +08:00
    @Livid 继续求指教地说... @everyone...
    chunchu
        3
    chunchu  
       2011-10-27 13:25:37 +08:00
    为什么不绑定域名呢?
    flyingkid
        4
    flyingkid  
       2011-10-27 13:29:46 +08:00
    @chunchu 功夫网你懂得
    thenewbie
        5
    thenewbie  
    OP
       2011-10-27 13:31:19 +08:00
    @chunchu 因为有堵墙啊...
    thenewbie
        6
    thenewbie  
    OP
       2011-10-27 13:32:29 +08:00
    @flyingkid 为何用htaccess也不行呢?求教...
    chaojie
        7
    chaojie  
       2011-10-27 13:35:51 +08:00
    被墙用反向代理有何用?我觉得被墙就不要折腾了
    flyingkid
        8
    flyingkid  
       2011-10-27 13:35:51 +08:00
    htaccess也能做反向代理?
    nginx把?
    chunchu
        9
    chunchu  
       2011-10-27 14:17:37 +08:00
    我是说为blogger绑定域名,用ghs.cmded.net
    thenewbie
        10
    thenewbie  
    OP
       2011-10-27 15:19:36 +08:00 via Android
    @chaojie 折腾成瘾。。。 @flyingkid 貌似可以部分实现代理功能 @chunchu 还是想实验这种方法,想知道为啥不行。。。折腾成瘾。。
    thenewbie
        11
    thenewbie  
    OP
       2011-10-27 19:20:50 +08:00
    @est 详细情况 :-)
    在没有被墙的虚拟主机上.htaccess 配置是
    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.*)$ http://某某.blogspot.com/$1 [P]

    结果仍然需要翻才能访问...
    thenewbie
        12
    thenewbie  
    OP
       2011-10-27 21:55:34 +08:00
    @_@ ... 坐等高手指教~
    napoleonu
        13
    napoleonu  
       2011-10-27 22:26:01 +08:00
    “结果仍然需要翻才能访问”,你配置好后在地址栏里面访问什么?依旧是 blogspot.com 的域名?
    thenewbie
        14
    thenewbie  
    OP
       2011-10-27 22:36:15 +08:00
    @napoleonu 虚拟空间绑定了 blog.某某.net,并且在这个空间放了 htaccess ;
    然后访问 blog.某某.net不行,
    只能显示出页脚的“Simple模板. 由 Blogger 强力驱动” 和 最上面显示一块灰色的div别的什么都不显示...
    就是说只有部分内容可以显示,翻了才可以看到全部....

    blog.某某.net”这个空间是没有被强的,那个blogger上面也没有不和谐内容,只有个hello word...
    好奇怪的说....

    所以很想知道为什么。。
    napoleonu
        15
    napoleonu  
       2011-10-27 22:42:18 +08:00
    CSS、JS、图片什么的使用的域名依旧在墙外?你把模板改下不知道可以解决不。
    thenewbie
        16
    thenewbie  
    OP
       2011-10-27 22:43:56 +08:00
    @napoleonu 呃?那个htaccess不是代理了么?....不行么?...
    thenewbie
        17
    thenewbie  
    OP
       2011-10-27 22:44:56 +08:00
    @napoleonu 还有。。。hello word日志也看不到...
    thenewbie
        18
    thenewbie  
    OP
       2011-10-27 22:45:31 +08:00
    @napoleonu blogger名称也无法显示...地说....好想知道为啥...
    napoleonu
        19
    napoleonu  
       2011-10-27 22:57:52 +08:00
    你用Chrome审查因素看看不翻墙的情况下什么可以加载下来,什么加载不下来,之后看能不能把那些加载不下来的东西通过修改模板的方式解决了。
    thenewbie
        20
    thenewbie  
    OP
       2011-10-27 23:00:45 +08:00
    @napoleonu 好主意!我试试去...
    thenewbie
        21
    thenewbie  
    OP
       2011-10-27 23:42:59 +08:00
    @napoleonu 的确不一样哎...用FF看,不翻得话,貌似好多请求只有“请求头” 没有 “响应头”... 但是... 这是为虾米?... htaccess代理不起作用么?
    lwjef
        22
    lwjef  
       2011-10-27 23:56:53 +08:00
    人那是 appspot
    你这是 blogspot
    有木有
    thenewbie
        23
    thenewbie  
    OP
       2011-10-28 00:01:24 +08:00
    @lwjef 但是...有啥区别么。。
    RewriteRule ^(.*)$ http://某某.blogspot.com/$1 [P]
    这样不会吧blogspot 代理过来么。。。
    thenewbie
        24
    thenewbie  
    OP
       2011-10-28 13:43:17 +08:00
    这样写的话 appspot 和 blogspot 有什么区别呢...
    lwjef
        25
    lwjef  
       2011-10-28 16:19:05 +08:00
    以下是我的猜测
    对于 appspot 绝大多数内容是请求 xxxx.appspot.com
    而 blogspot 会有很多内容需要请求 blogger blogblog gstatic 等未代理的域
    或许仅仅那几条规则是没法代理 blogspot 的
    thenewbie
        26
    thenewbie  
    OP
       2011-10-29 23:37:10 +08:00
    @lwjef 是有请求 blogblog 等域的... 可是为什么呢,代理的话,不应该是吧所有东西(包括blogblog等等域的内容)都先代理到这个没有被墙的虚拟主机上,然后一块发到电脑上么。。。
    Sjmr
        27
    Sjmr  
       2011-11-11 21:54:16 +08:00
    .htaccess 简单的说就是个转发,没有代理效果好不

    起代理作用的是 ghs 好不
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2582 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 03:07 · PVG 11:07 · LAX 20:07 · JFK 23:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.