升级Nginx后获得403 Forbidden

时间:2018-06-22 12:39:06

标签: ruby-on-rails nginx passenger

有一个带有栏杆的产品,ubuntu 14,nginx,乘客。 原因安全度量建议我,我在生产服务器中进行了Nginx升级。遵循他们在这篇文章中所说的步骤: update-nginx-in-ubuntu-14-04 (first answer) 现在网络向我抛出了403 Forbidden。 在服务器上运行

nginx -v && sudo service nginx status
nginx version: nginx/1.14.0
* nginx is running

这:

passenger -v
Phusion Passenger 5.0.30

看来他已经升级并开始运行了。

当我运行此sudo tail -20 /var/log/nginx/error.log (更改了IP和应用名称) 我得到了这个输出

2018/06/22 11:16:59 [error] 1908#1908: *28 directory index of 
"/home/deploy/apps/app_name/current/public/" is forbidden, client: 
xxx.xx.xx.xx, server: app_name.com, request: "GET / HTTP/1.1", host: 
"app_name.com"
2018/06/22 11:17:00 [error] 1908#1908: *29 directory index of 
"/home/deploy/apps/app_name/current/public/" is forbidden, client: 
xxx.xx.xx.xx, server: app_name.com, request: "GET / HTTP/1.1", host: 
"app_name.com"
2018/06/22 11:17:00 [error] 1908#1908: *28 directory index of 
"/home/deploy/apps/app_name/current/public/" is forbidden, client: 
xxx.xx.xx.xx, server: app_name.com, request: "GET / HTTP/1.1", host: 
"app_name.com"
2018/06/22 11:17:00 [error] 1908#1908: *28 directory index of 
"/home/deploy/apps/app_name/current/public/" is forbidden, client: 
xxx.xx.xx.xx, server: app_name.com, request: "GET / HTTP/1.1", host: 
"app_name.com"
2018/06/22 11:17:00 [error] 1908#1908: *28 directory index of 
"/home/deploy/apps/app_name/current/public/" is forbidden, client: 
xxx.xx.xx.xx, server: app_name.com, request: "GET / HTTP/1.1", host: 
"app_name.com"
2018/06/22 11:17:00 [error] 1908#1908: *30 directory index of 
"/home/deploy/apps/app_name/current/public/" is forbidden, client: 
xxx.xx.xx.xx, server: app_name.com, request: "GET / HTTP/1.1", host: 
"app_name.com"
2018/06/22 11:22:47 [info] 5131#5131: Using 32768KiB of shared memory 
for nchan in /etc/nginx/nginx.conf:57
[ 2018-06-22 11:22:48.6977 5136/7fcf6e0367c0 age/Sha/Base.cpp:1526 ]: 
**ERROR: Unexpected empty message received from channel
 in 'void Passenger::VariantMap::readFrom(int, const 
Passenger::StaticString&)' (VariantMap.h:153)
 in 'Passenger::VariantMap Passenger::initializeAgent(int, char***, 
const char*, Passenger::OptionParserFunc, 
Passenger::PreinitializationFunc, int)' (Base.cpp:1508)
2018/06/22 11:22:48 [alert] 5135#5135: Unable to start the Phusion 
Passenger watchdog: it seems to have crashed during startup for an 
unknown reason, with exit code 1 (-1: Unknown error)
2018/06/22 11:28:47 [error] 5141#5141: *4 directory index of 
"/home/deploy/apps/app_name/current/public/" is forbidden, client: 
xx.xxx.xxx.xxx, server: app_name.com, request: "GET / HTTP/1.1", host: 
"www.app_name.com"**

似乎和乘客有什么关系? (但我不知道该怎么办) 任何帮助都将受到欢迎。

0 个答案:

没有答案