[英]AppEngine Nodejs not redirecting HTTP to HTTPS
我已經設置了我的app.yaml
文件,如下所示:
runtime: nodejs10
handlers:
- url: /.*
script: auto
secure: always
redirect_http_response_code: 301
# Serve all static files with urls ending with a file extension
- url: /(.*\..+)$
static_files: dist/\1
upload: dist/(.*\..+)$
# catch all handler to index.html
- url: /.*
static_files: dist/index.html
upload: dist/index.html
這對 Flask 項目有效,但對於我的 Nodejs 項目,它似乎不起作用。 我是否需要將script: auto
更改為其他內容?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.