使用 Typecho 搭建博客
nginx 配置文件
[root@dbtest ~]# cat /etc/nginx/conf.d/www.typecho.com.conf
server {
listen 80;
server_name www.typecho.com;
root /website/typecho;
index index.php;
location ~ .*\.php(\/.*)*$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_split_path_info ^(.+?.php)(/.*)$;
include fastcgi_params;
}
}
php 配置文件
[root@dbtest ~]# vim /etc/php.ini
cgi.fix_pathinfo = 1
部署 Typecho 时遇到问题,登陆后台以及其他页面 404报错 解决方案:
https://www.moewah.com/archives/520.html
记录成长过程