Ghost&Wordpress一滴
我有3个Wordpress网站2个客户一个是我的 我把它们放在数字海洋上的水滴里 我有一个鬼网站在不同的水滴 我正在考虑将wordpress站点移动到ghost droplet,以便将所有内容整合到一台服务器。我正在将wordpress站点移动到ghost服务器 我一直在关注这个链接- 然后一个用户告诉我我也必须这样做- nginx-fastcgi-php 整个过程似乎不连贯,最后我在NGINX配置的堆栈溢出上找到了这段代码,现在我不知道从哪里开始。我应该从哪里开始Ghost&Wordpress一滴,wordpress,nginx,ghost,Wordpress,Nginx,Ghost,我有3个Wordpress网站2个客户一个是我的 我把它们放在数字海洋上的水滴里 我有一个鬼网站在不同的水滴 我正在考虑将wordpress站点移动到ghost droplet,以便将所有内容整合到一台服务器。我正在将wordpress站点移动到ghost服务器 我一直在关注这个链接- 然后一个用户告诉我我也必须这样做- nginx-fastcgi-php 整个过程似乎不连贯,最后我在NGINX配置的堆栈溢出上找到了这段代码,现在我不知道从哪里开始。我应该从哪里开始 server {
server {
listen 80 default_server;
root /var/www/html;
index index.php index.html index.htm;
server_name wordpress-blog-doamin.com;
location / {
# try_files $uri $uri/ =404;
try_files $uri $uri/ /index.php?q=$uri&$args;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
server {
listen 80;
server_name ghost-blog-domain.com ;
client_max_body_size 10M;
location / {
proxy_pass http://localhost:2368/;
proxy_set_header Host $host;
proxy_buffering off;
}
}