DAOCLOUD
推荐学习书目
› Python Cookbook
› Using Google App Engine
推荐下载
› Latest Google App Engine SDK
其他兼容技术
› AppScale
thenewbie

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

  •  
  •   thenewbie · Oct 27, 2011 via Android · 7440 views
    This topic created in 5486 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
    thenewbie
    OP
    Oct 27, 2011
    1
    @liuhang0077 求指教...
    thenewbie
    thenewbie
    OP
    Oct 27, 2011
    2
    @Livid 继续求指教地说... @everyone...
    chunchu
    chunchu
    Oct 27, 2011
    3
    为什么不绑定域名呢?
    flyingkid
    flyingkid
    Oct 27, 2011
    4
    @chunchu 功夫网你懂得
    thenewbie
    thenewbie
    OP
    Oct 27, 2011
    5
    @chunchu 因为有堵墙啊...
    thenewbie
    thenewbie
    OP
    Oct 27, 2011
    6
    @flyingkid 为何用htaccess也不行呢?求教...
    chaojie
    chaojie
    Oct 27, 2011
    7
    被墙用反向代理有何用?我觉得被墙就不要折腾了
    flyingkid
    flyingkid
    Oct 27, 2011
    8
    htaccess也能做反向代理?
    nginx把?
    chunchu
    chunchu
    Oct 27, 2011
    9
    我是说为blogger绑定域名,用ghs.cmded.net
    thenewbie
    thenewbie
    OP
    Oct 27, 2011 via Android
    10
    @chaojie 折腾成瘾。。。 @flyingkid 貌似可以部分实现代理功能 @chunchu 还是想实验这种方法,想知道为啥不行。。。折腾成瘾。。
    thenewbie
    thenewbie
    OP
    Oct 27, 2011
    11
    @est 详细情况 :-)
    在没有被墙的虚拟主机上.htaccess 配置是
    RewriteEngine On
    RewriteBase /
    RewriteRule ^(.*)$ http://某某.blogspot.com/$1 [P]

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

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

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

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