【发布时间】:2017-12-12 10:45:09
【问题描述】:
如您所见,ghost start 期间我没有收到任何错误
但是当我实际转到页面http://13.125.83.25(EC2 实例的弹性IP)时,什么都没有。页面不加载任何东西。不知道为什么会发生这种情况,我是幽灵模块的新手。我错过了什么?
下面是config.production.json。
{
"url": "http://13.125.83.25",
"server": {
"port": 2368,
"host": "127.0.0.1"
},
"database": {
"client": "mysql",
"connection": {
"host": "localhost",
"user": "",
"password": "", // just hided
"database": ""
}
},
"mail": {
"transport": "Direct"
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/www/ghost/content"
}
}
这是/etc/nginx/sites-available/default
server {
listen 80;
root /var/www/html;
server_name _;
location / {
proxy_pass http://127.0.0.1:2368;
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
【问题讨论】:
标签: amazon-web-services nginx amazon-ec2 ghost-blog ghost