全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1840|回复: 10

[Windows VPS] 有没有支持https的字体公共库

[复制链接]
发表于 2016-2-1 12:32:10 | 显示全部楼层 |阅读模式
useso前面加上https不能用了
发表于 2016-2-1 13:20:02 | 显示全部楼层
网硕互联 发表于 2016-2-1 12:53
请教大神怎么建?
  1. upstream fonts_google {
  2.         server fonts.miskcoo.com:80;
  3. }

  4. upstream fonts_gstatic {
  5.         server fonts.gstatic.com:80;
  6. }

  7. server {
  8.         listen 80;
  9.         listen [::]:80;

  10.         server_name fonts.miskcoo.com;
  11.         access_log /var/log/nginx/fonts_access_log main;

  12.         valid_referers server_name *.miskcoo.com miskcoo.com;
  13.         if ($invalid_referer) {
  14.                 return 403;
  15.         }

  16.         location /css {
  17.                 sub_filter 'fonts.gstatic.com' 'fonts.miskcoo.com';
  18.                 sub_filter_once off;
  19.                 sub_filter_types text/css;
  20.                 proxy_pass_header Server;
  21.                 proxy_set_header Host fonts.miskcoo.com;
  22.                 proxy_set_header Accept-Encoding '';
  23.                 proxy_redirect off;
  24.                 proxy_set_header X-Real-IP $remote_addr;
  25.                 proxy_set_header X-Scheme $scheme;
  26.                 proxy_pass http://fonts_google;
  27.         }

  28.         location / {
  29.                 proxy_pass_header Server;
  30.                 proxy_set_header Host fonts.gstatic.com;
  31.                 proxy_redirect off;
  32.                 proxy_set_header X-Real-IP $remote_addr;
  33.                 proxy_set_header X-Scheme $scheme;
  34.                 proxy_pass http://fonts_gstatic;
  35.         }
  36. }
复制代码
 楼主| 发表于 2016-2-1 12:38:20 | 显示全部楼层
fonts.lug.ustc.edu.cn 这个加https可以,但是好慢,好慢,好慢。。。。。。。。。。。。
发表于 2016-2-1 12:46:56 | 显示全部楼层
需求多吗,我想搞个公共库,阿牛里面几T的流量总感觉浪费,想物尽其用
 楼主| 发表于 2016-2-1 12:49:29 | 显示全部楼层
村长 发表于 2016-2-1 12:46
需求多吗,我想搞个公共库,阿牛里面几T的流量总感觉浪费,想物尽其用

需求,每日1IP
发表于 2016-2-1 12:52:55 来自手机 | 显示全部楼层
自建一个,全程SSL...
80的也重定向SSL
 楼主| 发表于 2016-2-1 12:53:23 | 显示全部楼层
wtycn 发表于 2016-2-1 12:52
自建一个,全程SSL...
80的也重定向SSL

请教大神怎么建?
发表于 2016-2-1 13:14:09 | 显示全部楼层
google自己的就支持啊!
发表于 2016-2-1 13:22:37 | 显示全部楼层
伤不起的流量
 楼主| 发表于 2016-2-1 13:42:20 | 显示全部楼层

yc010tyc010tyc010tyc010t
大神你真是太给力了,我要多发表情表达我的感激之情
yc017tyc017tyc017tyc017t
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-27 08:41 , Processed in 0.067139 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表