V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
iugo
V2EX  ›  问与答

Google Forms 使用 nginx 反向代理问题

  •  
  •   iugo · 2014-12-03 17:57:29 +08:00 · 2403 次点击
    这是一个创建于 3454 天前的主题,其中的信息可能已经有所发展或是发生改变。
    之前有过 google spreadsheets的nginx反向代理问题 https://www.v2ex.com/t/4226

    我现在配置如下:

    server {
    listen 80;
    server_name docs.domain.net;
    location / {
    proxy_pass https://docs.google.com/;
    proxy_set_header Accept-Encoding "";
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_redirect https://docs.google.com/ http://docs.domain.net/;
    }
    }

    首次是可以访问了, 但无法使用. 问题如下:

    1. 内置的 fonts.googleapis.com 墙内无法访问
    2. 进行操作后又跳回 https://docs.google.com/
    1 条回复    2014-12-03 18:59:41 +08:00
    Aoun
        1
    Aoun  
       2014-12-03 18:59:41 +08:00   ❤️ 1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2470 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 13:45 · PVG 21:45 · LAX 06:45 · JFK 09:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.