declanVox
V2EX  ›  问与答

求助 Nginx 反向代理 Tumblr 中 HttpSubsModule(非 HttpSubModule,由华人开发) 配置的问题

  •  
  •   declanVox · Oct 31, 2014 · 4151 views
    This topic created in 4223 days ago, the information mentioned may be changed or developed.

    sites-available 文件如下[^code]

    server
    {
    listen 443;
    server_name declanvox.com;
    
    
    ssl on;
    ssl_certificate /root/declanvox_com.crt; 
    ssl_certificate_key /root/declanvox.key; 
    ssl_protocols SSLv3 TLSv1;
    ssl_ciphers ALL:-ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP;
    
    
    location / {
    subs_filter_types text/html text/css text/xml;
    subs_filter declanvox.tumblr.com declanvox.com g;
    proxy_redirect http://declanvox.tumblr.com/ /;
    proxy_redirect off;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host "declanvox.tumblr.com";
    proxy_set_header Accept-Encoding "";
    proxy_pass http://declanvox.tumblr.com;
    sub_filter declanvox.tumblr.com declanvox.com;
    sub_filter_once off;
    }
    
    }
    
    server
    {
    listen 80;
    server_name declanvox.com;
    rewrite ^(.*) https://declanvox.com/$1 permanent;
    
    
    }
    

    现在问题是,可以打开主页面(打开 https://declanvox.com,显示为 declanvox.tumblr.com 主页面),但①点进去任意一个链接均为 404 not found ②证书显示不安全。我不知 HttpSubsModule 配置有误否,或者是 tumblr 图床均衡负载的缘故,导致配置不成功。我希望替换 tumblr 所有链接到主域名(declanvox.com)。求问!

    2 replies    2014-10-31 14:15:21 +08:00
    declanVox
        1
    declanVox  
    OP
       Oct 31, 2014
    我用 SS 访问 declanvox.com 提示混合内容(https黄色感叹号),直接访问提示证书不安全。
    declanVox
        2
    declanVox  
    OP
       Oct 31, 2014
    使用的是Dotdeb的Nginx-full。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   880 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 147ms · UTC 19:49 · PVG 03:49 · LAX 12:49 · JFK 15:49
    ♥ Do have faith in what you're doing.