LLsmp安装过后需要做的WordPress配置

作者: 站长 上传时间: 浏览: N/A 下载: N/A 格式: N/A 评分: N/A

1、vsftp在安装以后我们要进行以下操作。
a:编辑 vi /etc/vsftpd/vsftpd.conf 在末尾加上
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list
#以上2句控制用户在自己的目录
pasv_enable=yes
pasv_promiscuous=no
pasv_max_port=33610
pasv_min_port=33601
#在iptables 中设置允许20,21端口访问服务器,同时允许33601-33610端口访问服务器
#asv_address
#以上用来指定ftp使用被动连接时的端口范围.

重启
vsftpd /etc/init.d/vsftpd restart

2、wordpress的llsmp中nginx配置文件:

server {
set $cache /wp-content/cache/supercache/$host;
listen ip:80;
server_name www.94seo.com;
location / {
root /home/wwwroot/www.94seo.com/html;
index index.html index.htm index.php;
add_header Content-Type “text/html; charset=UTF-8″;
add_header Content-Encoding “gzip”;
try_files $cache/$uri/index.html.gz @backend;
}
#以上是 wordpress安装了supercache插件后使用.
location ~ /\.ht {
deny all;
}
#禁止访问.htacess文件.
location ~* \.(jpg|jpeg|png|gif|css|js|swf|mp3|avi|flv|xml|zip|rar)$ {
root /home/wwwroot/www.94seo.com/html;
gzip on;
gzip_types text/plain application/x-javascript text/css application/xml;
expires 30d;
break;
}
#对静态文件,nginx自行处理,不用转到后端服务器
location @backend {
proxy_pass http://127.0.0.1:80;
include proxy.conf;
}
#对于其他的文件,通过backend送到后端给litespeed处理
}

标签:

Leave a Comment