如果你正在寻求帮助,提供尽可能多的背景信息是很重要的,这样人们就能够帮助你。尽量总是提到:
- 你的网址是什么?http://www.vincentyuan.us/
- 你用的是什么版本的Ghost?5.54.0
- 什么配置?使用Ghost CLI安装,配置如下
- 什么浏览器? chrome
- 您在控制台中看到了哪些错误或信息?ghost状态没有错误,但网站无法访问,底部显示404错误和nginx/1.18.0(Ubuntu)。
- 其他人可以采取哪些步骤来重现您遇到的问题?
我已经创建了弹性IP下面这个tutorial:
在Route 53上也创建了AWS上的托管区域,名称服务器已添加到我购买域名的NameCheap中,昨晚配置了它们,我认为DNS可能需要一些时间来传播,但似乎确实存在一些问题。
config.production.json如下所示:
{
"url": "https://vincentyuan.us",
"server": {
"port": 2368,
"host": "127.0.0.1"
},
"database": {
"client": "mysql",
"connection": {
"host": "my_host",
"user": "my_user",
"password": "password",
"database": "my_database",
"ssl": "Amazon RDS"
}
},
"mail": {
"transport": "Direct"
},
"logging": {
"transports": [
"file",
"stdout"
]
},
"process": "systemd",
"paths": {
"contentPath": "/var/www/sitename/content"
}
}
字符串
幽灵医生日志:
✔ Checking system Node.js version - found v16.20.1
✔ Checking logged in user
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
✔ Checking system compatibility
+ sudo systemctl is-active ghost_vincentyuan-us
Instance is currently running
ℹ Validating config [skipped]
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✖ Checking memory availability
✔ Checking binary dependencies
✔ Checking free space
✔ Checking systemd unit file
✔ Checking systemd node version - found v16.20.1
One or more errors occurred.
1) SystemError
Message: You are recommended to have at least 150 MB of memory available for smooth operation. It looks like you have ~111.0390625 MB available.
Debug Information:
OS: Ubuntu, v20.04.6 LTS
Node Version: v16.20.1
Ghost Version: 5.54.0
Ghost-CLI Version: 1.24.2
Environment: production
Command: 'ghost doctor'
Try running ghost doctor to check your system for known issues.
型
nginx状态:
ubuntu@ip-172-31-41-64:/var/www/sitename/current$ service nginx status
● nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2023-07-09 03:06:19 UTC; 13h ago
Docs: man:nginx(8)
Main PID: 545 (nginx)
Tasks: 2 (limit: 1141)
Memory: 3.0M
CGroup: /system.slice/nginx.service
├─545 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
└─546 nginx: worker process
Jul 09 03:06:19 ip-172-31-41-64 systemd[1]: Starting A high performance web server and a reverse proxy server...
Jul 09 03:06:19 ip-172-31-41-64 systemd[1]: Started A high performance web server and a reverse proxy server.
型ghost set up ssl
也工作:
Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org
SSL has already been set up, skipping
ℹ Setting up SSL [skipped]
型
1条答案
按热度按时间pobjuy321#
问题在于您的SSL证书。您正在提供子域(www),但您的证书仅为根域设置。
所以这个工作原理http://vincentyuan.us/
但这并不http://www.vincentyuan.us/
您可能需要重新生成证书以包含子域。根据您创建SSL的方式,这将有所不同,但一般概念是相同的。以下是一些关于CloudFront SSL的文档,因为您似乎正在使用:https://developers.cloudflare.com/ssl/edge-certificates/universal-ssl/的