---
title: "Nginx反向代理后在IOS下网站无法打开"
id: "306"
type: "post"
slug: "nginx%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86%e5%90%8e%e5%9c%a8ios%e4%b8%8b%e7%bd%91%e7%ab%99%e6%97%a0%e6%b3%95%e6%89%93%e5%bc%80"
published_at: "2020-06-17T10:37:45+00:00"
modified_at: "2020-09-03T14:02:41+00:00"
url: "https://www.hitsword.org/2020/306.html"
markdown_url: "https://www.hitsword.org/2020/306.md"
excerpt: "1.使用Nginx 反向代理个站点，后端是apache。Nginx配了http和https。 2.在电脑和安卓 […]"
taxonomy_category:
  - "Nginx"
taxonomy_post_tag:
  - "IOS"
  - "Nginx"
  - "反向代理"
---

# Nginx反向代理后在IOS下网站无法打开

1.使用Nginx 反向代理个站点，后端是apache。Nginx配了http和https。  
 2.在电脑和安卓手机打开http和https一切正常，在ios的safari浏览器和微信内置浏览器、Chrome都打不开。  
 3.一直找不到原因，搜索了好久终于知道是HTTP2返回头问题:https://www.v2ex.com/amp/t/416055  
 4.解决修改nginx proxy中配置

```
proxy_hide_header Upgrade;
```
