I
I
Ilya Lazarev2014-08-17 22:28:20
Nginx
Ilya Lazarev, 2014-08-17 22:28:20

Why forbidden 403 nginx?

Put nginx+passenger into production. configured config:

user www-data;
error_log  /var/log/nginx/error.log;
events {
  worker_connections  1024;
}

http {
  passenger_root /usr/local/rvm/gems/ruby-2.1.2/gems/passenger-4.0.48;
  passenger_ruby /usr/local/rvm/gems/ruby-2.1.2/wrappers/ruby;

server {
  listen   80;
  server_name  dragonfest.ru www.dragonfest.ru;
  passenger_enabled on;
  root /var/www/public;
  }
}

copied the project to /var/www/public , gave www-data permissions recursively. Gives a 403 error. Any ideas?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Petrikov, 2014-08-18
@RicoX

Who owns /usr/local/rvm/gems/ruby-2.1.2 and subdirectories? Maybe nginx can't access ruby ​​because he has no rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question