V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
爱意满满的作品展示区。
fairytale

利用泛域名解析做 WEB 代理,彻底解决相对路径替换、cookie 冲突、401 验证等等问题。

  •  
  •   fairytale · Nov 2, 2014 · 4957 views
    This topic created in 4196 days ago, the information mentioned may be changed or developed.
    web代理有个好处就是什么客户端什么设置都不需要,开始用glype、knproxy,但是这种在网页内容用"?url="替换的方式总是不理想。想用nginx反带尽可能多的域名又太麻烦。前阵刚买了@xoxo 的证书,折腾了了个这个 https://xxxxxxxxxxxxxx.dbglab.org/ (只是抛砖,一周内有效)


    方法:
    1.使用了knproxy的http模块
    2.网址替换直接替换所有http开头的字符串(方式类似 http://www.google.com/search 替换为 https://httpwwwgooglecom.dbglab.org/search
    9 replies    2015-04-22 10:12:23 +08:00
    wzxjohn
        1
    wzxjohn  
       Nov 2, 2014
    这个思路着实不错也~用起来感觉也挺好的。
    xoxo
        2
    xoxo  
       Nov 2, 2014
    楼主何时开源呢〜〜
    fairytale
        3
    fairytale  
    OP
       Nov 2, 2014
    @xoxo 就几行代码,实现原理也很简单(上面说了方法了),都不嫌弃的话,那就等会贴出来。
    binux
        4
    binux  
       Nov 2, 2014
    jings
        5
    jings  
       Nov 2, 2014
    让我想起了洋葱.onion 的域名
    弱弱的问一句,头像是药娘吗?
    changsha
        6
    changsha  
       Nov 2, 2014 via iPhone
    提示无法验证证书
    jings
        7
    jings  
       Nov 3, 2014
    同上面的 无法登陆邮箱。 希望能加个账号密码。。防止被封和滥用
    coldwinds
        8
    coldwinds  
       Nov 3, 2014
    cmheia
        9
    cmheia  
       Apr 22, 2015
    @fairytale 没人嫌弃啊_(:зゝ∠)_等到花儿也谢了……只搜到这个 https://tydus.org/blog/nginx-wildcard-reverse-proxy.htm
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 22:09 · PVG 06:09 · LAX 15:09 · JFK 18:09
    ♥ Do have faith in what you're doing.