摘要: 配置如下: server {listen 80;server_name localhost; return 301 https://localhost$request_uri; charset UTF-8; location / { root html; # 这个是指定一个项目所在目录 index 阅读全文