- 打开typecho根目录下config.inc.php,添加以下一行代码
define('__TYPECHO_SECURE__',true);
配置http重定向到https,以Nginx为例,在配置文件加上
proxy_set_header X-Forwarded-Proto https;
location / { proxy_pass http://localhost:8080/; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; }
版权属于:
basil
作品采用:
《
署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)
》许可协议授权