当我在app.yaml中添加secure:always参数时,我仍未被重定向到https。 Https在我手动输入时工作,我在实时服务器上测试它,但它将网站视为安全:始终不在那里。
我最终只是试图将它映射到yaml文件中的所有处理程序,但它仍然没有效果。
application: appname
version: 1
runtime: python27
api_version: 1
threadsafe: yes
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
secure: always
- url: /css
static_dir: css
secure: always
- url: /fonts
static_dir: fonts
secure: always
- url: /js
static_dir: js
secure: always
- url: /img
static_dir: img
secure: always
- url: .*
script: main.app
secure: always
libraries:
- name: webapp2
version: "2.5.2"
- name: jinja2
version: "2.6"
error_handlers:
- file: default_error.html