V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
DAOCLOUD
推荐学习书目
Python Cookbook
Using Google App Engine
推荐下载
Latest Google App Engine SDK
其他兼容技术
AppScale
thenewbie

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

  •  
  •   thenewbie · Oct 27, 2011 via Android · 6964 views
    This topic created in 5302 days ago, the information mentioned may be changed or developed.
    在虚拟主机上,参照: v2ex.com/t/6225 ,弄好后还需要翻过去才看到。。。why?
    27 replies    1970-01-01 08:00:00 +08:00
    thenewbie
        1
    thenewbie  
    OP
       Oct 27, 2011
    @liuhang0077 求指教...
    thenewbie
        2
    thenewbie  
    OP
       Oct 27, 2011
    @Livid 继续求指教地说... @everyone...
    chunchu
        3
    chunchu  
       Oct 27, 2011
    为什么不绑定域名呢?
    flyingkid
        4
    flyingkid  
       Oct 27, 2011
    @chunchu 功夫网你懂得
    thenewbie
        5
    thenewbie  
    OP
       Oct 27, 2011
    @chunchu 因为有堵墙啊...
    thenewbie
        6
    thenewbie  
    OP
       Oct 27, 2011
    @flyingkid 为何用htaccess也不行呢?求教...
    chaojie
        7
    chaojie  
       Oct 27, 2011
    被墙用反向代理有何用?我觉得被墙就不要折腾了
    flyingkid
        8
    flyingkid  
       Oct 27, 2011
    htaccess也能做反向代理?
    nginx把?
    chunchu
        9
    chunchu  
       Oct 27, 2011
    我是说为blogger绑定域名,用ghs.cmded.net
    thenewbie
        10
    thenewbie  
    OP
       Oct 27, 2011 via Android
    @chaojie 折腾成瘾。。。 @flyingkid 貌似可以部分实现代理功能 @chunchu 还是想实验这种方法,想知道为啥不行。。。折腾成瘾。。
    thenewbie
        11
    thenewbie  
    OP
       Oct 27, 2011
    @est 详细情况 :-)
    在没有被墙的虚拟主机上.htaccess 配置是
    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.*)$ http://某某.blogspot.com/$1 [P]

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

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

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

    起代理作用的是 ghs 好不
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1407 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 16:27 · PVG 00:27 · LAX 09:27 · JFK 12:27
    ♥ Do have faith in what you're doing.