linux - Trying to use Passenger/Nginx for my Rails production server, 403 error -


i'm trying production server , running on ubuntu 12.04 lts server, followed tutorial step step,

http://excid3.com/blog/setting-up-ubuntu-12-04-with-ruby-1-9-3-nginx-passenger-and-postgresql-or-mysql/#.uuavdhnzvqi

but when load nginx, 403 error. here namei -om /home/deploy(user)/app

 drwxr-xr-x root   root     /  drwxr-xr-x deploy www-data home  drwxr-xr-x deploy www-data deploy  drwxr-xr-x deploy www-data knowyourroute 

and in nginx.conf have @ top

user deploy www-data;

and in server { have

listen 80; server_name 10.0.0.30; root /home/deploy/knowyourroute/public; passenger_enabled on;  location / {    root html;    index index.html index.htm; }  error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } 

i've googled crap out of tried changing permissions, groups, running root or running user deploy still nothing i'm running out of things try if has idea great.

you need re-specify passenger_enabled in location block.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -