我的应用程序部署在Google AppEngine中,我的DNS部署在GoDaddy中。
我的app.yaml是这样的:
handlers:
- url: /.*
http_headers:
X-Forwarded-Proto: https
script: auto
secure: always
redirect_http_response_code: 301
- url: /
http_headers:
X-Forwarded-Proto: https
static_files: build/index.html
secure: always
redirect_http_response_code: 301
upload: build/index.html
- url: /(.*)$
http_headers:
X-Forwarded-Proto: https
static_files: build/\1
secure: always
redirect_http_response_code: 301
upload: build/(.*)但是当我测试我的应用程序url时
https://[project-id].appspot.com显示了一个安全的站点,但是http://[project-id].appspot.com没有
如何让http重定向到https?我是否对app.yaml进行了正确的更改。或者有什么事情要做,从GoDaddy DNS方面?
另外,当我在url (例如https://[domain].com )中输入域时,它会转到安全站点,但是我键入http://[domain].com,它就会被输入“不安全”的站点。
https://serverfault.com/questions/1010918
复制相似问题