阿里云 ecs 配置 typecho wordpress多站点
来源:互联网 发布:python 声明 日期 编辑:程序博客网 时间:2024/05/21 22:44
1.cd /alidata/www/ 放typecho安装包 chmod 755
2.cd /alidata/server/nginx/conf/vhost/ vim typecho.conf
server {
listen 80; //端口
server_name localhost; //域名
index index.html index.htm index.php;
root /alidata/www/typecho; //typecho 安装目录
location ~ .*\.(php|php5)?$
{
#fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 1h;
}
#α¾²̬¹畲
include /alidata/server/nginx/conf/rewrite/typecho.conf; //伪静态规则
access_log /alidata/log/nginx/access/typecho.log; //日志
}
cd /alidata/server/nginx/conf/rewrite vim typecho.conf
location / {
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
然后 重启nginx
/alidata/server/nginx/sbin/nginx -s reload
多站点 很简单
server_name 写不同的域名即可
- 阿里云 ecs 配置 typecho wordpress多站点
- 阿里云ecs搭建wordpress
- 阿里云ECS—wordpress配置(主题/页脚/流量)
- 阿里云ECS配置
- 阿里云ECS—wordpress搭建
- 阿里云ECS Centos配置
- 阿里云ecs云服务器建立wordpress个人博客教程
- 阿里云主机搭建WordPress博客站点
- 阿里云CentOS安装typecho
- 阿里云服务器ECS配置(亲测)
- 阿里云服务器ECS配置全解
- 阿里云ECS 下ngixn 配置详解
- 阿里云ECS配置VPN海外代理
- 阿里云ECS(linux)配置搭建
- 阿里云ECS服务器配置记录
- 阿里云ECS用docker配置MdWiki
- 阿里云ECS服务器https配置实践
- 阿里云服务器ECS配置全解
- c#之反射_FieldInfo_GetField_
- 程序猿是如何解决SQLServer占CPU100%的
- 第十七周项目四 日期结构体(1)
- 相关系数
- FadeInOut相机渐变
- 阿里云 ecs 配置 typecho wordpress多站点
- Monkey工具
- Oracle数据库日期范围查询有两种方式
- php压缩图片
- 第十七周项目三 胖子伤不起
- REDIS学习总结
- iOS 开发使用半透明模糊效果方法整理(欢迎分享和提建议)
- 模板类操作符重载问题
- Linux串口调试配置_GRUB串口通信_串口登陆