iugo
V2EX  ›  问与答

Google Forms 使用 nginx 反向代理问题

  •  
  •   iugo · Dec 3, 2014 · 2925 views
    This topic created in 4247 days ago, the information mentioned may be changed or developed.
    之前有过 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 replies    2014-12-03 18:59:41 +08:00
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5657 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 07:26 · PVG 15:26 · LAX 00:26 · JFK 03:26
    ♥ Do have faith in what you're doing.