Passenger Forbidden Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the 403 forbidden nginx rails workings and policies of this site About Us Learn more about
Passenger 403 Forbidden Apache
Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions directory index of is forbidden nginx passenger Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other.
Passenger No Matching Directoryindex
Join them; it only takes a minute: Sign up 403 Forbidden on Rails app w/ Nginx, Passenger up vote 8 down vote favorite 1 First off, apologies: I know the 403 Forbidden question is a common one for Rails/Nginx installs, but none of the answers I've read so far have solved it for me. Disclaimer: This is my first rails raise 403 time deploying a Rails app somewhere that isn't Heroku. Please be gentle. ;) Situation: I have a Rails app running on an Ubuntu 12.04 server, running Nginx (installed with Passenger). I've deployed my app to my server correctly, but when I attempt to access the site, I receive a 403 Forbidden error. Checking my error logs, I see: 2013/10/23 22:47:01 [error] 27954#0: *105 directory index of "/var/www/colepeters.com/current/public/" is forbidden, client: 50.3…server: colepeters.com, request: "GET / HTTP/1.1", host: "colepeters.com" 2013/10/23 22:47:10 [error] 27954#0: *106 directory index of "/var/www/colepeters.com/current/public/" is forbidden, client: 184…server: colepeters.com, request: "GET / HTTP/1.1", host: "colepeters.com" 2013/10/23 22:47:12 [error] 27954#0: *107 directory index of "/var/www/colepeters.com/current/public/" is forbidden, client: 151…server: colepeters.com, request: "GET / HTTP/1.1", host: "colepeters.com" However, when checking permissions on this directory, I see that the user I have setup to use Nginx had both read and execute permissions on it. Here's the relevant info from my nginx.conf: user XXXX; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { passenger_root /home/cole/.rvm/gems/ruby-2.0.0-p247/gems/passeng
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings
Passenger Directory Index Is Forbidden
and policies of this site About Us Learn more about Stack Overflow
Rails Nginx Unicorn 403 Forbidden
the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags directory index of public is forbidden Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only http://stackoverflow.com/questions/19553907/403-forbidden-on-rails-app-w-nginx-passenger takes a minute: Sign up 403 Forbidden on Rails app w/ Nginx, Passenger, unix up vote 0 down vote favorite Hi i am having the 403 error despite following the steps from here 403 Forbidden on Rails app w/ Nginx, Passenger My app folder permissions namei -l /home/ubuntu/resume_consumer/current/public f: /home/ubuntu/resume_consumer/current/public drwxr-xr-x root root / drwxr-xr-x root root home drwxr-xr-x ubuntu http://stackoverflow.com/questions/32043097/403-forbidden-on-rails-app-w-nginx-passenger-unix ubuntu ubuntu drwxrwxr-x ubuntu ubuntu resume_consumer lrwxrwxrwx ubuntu ubuntu current -> /home/ubuntu/resume_consumer/releases/20150815211156 drwxr-xr-x root root / drwxr-xr-x root root home drwxr-xr-x ubuntu ubuntu ubuntu drwxrwxr-x ubuntu ubuntu resume_consumer drwxrwxr-x ubuntu ubuntu releases drwxrwxr-x ubuntu ubuntu 20150815211156 drwxrwxr-x ubuntu ubuntu public The Nginx app is running as nobody ps waux | grep nginx root 12005 0.0 0.0 42480 900 ? Ss Jul28 0:00 nginx: master process /opt/nginx/sbin/nginx nobody 12006 0.0 0.1 42804 2016 ? S Jul28 0:00 nginx: worker process My nginx config looks as follows #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; pid logs/nginx.pid; events { worker_connections 1024; } http { passenger_root /home/ubuntu/.rvm/gems/ruby-2.2.1/gems/passenger-5.0.14; passenger_ruby /home/ubuntu/.rvm/wrappers/ruby-2.2.1/ruby; include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_bytes_sent "$http_referer" ' # '"$http_user_agent" "$http_x_forwarded_for"'; #access_log logs/access.log main; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; #gzip on; server { listen 80; server_name qa.enterprise.getmeed.com; root /home/ubuntu/resume/current/public; passenger_enabled on; #charset koi8-r; #access_log logs/host.access.log main; # location / { # root html; # index index.html index.htm; #} #error_page 404 /404.html; # redirect server error pages to th
Start here for a quick overview of the site Help Center Detailed answers to any questions you might http://serverfault.com/questions/641413/403-forbidden-response-on-a-ubuntu-nginx-passenger-server have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads https://www.digitalocean.com/community/questions/403-forbidden-error-when-insatlling-rails-nginx-passenger with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it 403 forbidden only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top 403 Forbidden response on a ubuntu + nginx + passenger server up vote 0 down vote favorite 1 I'm trying to deploy my Rails app on my Digital directory index of Ocean VPS but I'm getting a 403 when I visit the IP adres. This is the output of my errorlog: [ 2014-11-02 04:18:12.0511 23504/7f64e6a36780 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.53', 'pool_idle_time' => '300', 'temp_dir' => '/tmp', 'union_station_gateway_address' => 'gateway.unionstationapp.com', 'union_station_gateway_port' => '443', 'user_switching' => 'true', 'web_server_passenger_version' => '4.0.53', 'web_server_pid' => '23503', 'web_server_type' => 'nginx', 'web_server_worker_gid' => '33', 'web_server_worker_uid' => '33' } [ 2014-11-02 04:18:12.0628 23507/7f544fe55780 agents/HelperAgent/Main.cpp:650 ]: PassengerHelperAgent online, listening at unix:/tmp/passenger.1.0.23503/generation-0/request [ 2014-11-02 04:18:12.1029 23512/7fd0a6b6b7c0 agents/LoggingAgent/Main.cpp:321 ]: PassengerLoggingAgent online, listening at unix:/tmp/passenger.1.0.23503/generation-0/logging [ 2014-11-02 04:18:12.1035 23504/7f64e6a36780 agents/Watchdog/Main.cpp:728 ]: All Phusion Passenger agents started! [ 2014-11-02 04:18:12.1191 23512/7fd0a6b6b7c0 agents/LoggingAgent/Main.cpp:289 ]: Caught signal, exiting... [ 2014-11-02 04:18:13.1537 23534/7f9940e05780 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'default_python' => 'python', 'default_ruby' => '/usr/bin/ruby', 'default_user' => 'nobody', 'log_level' => '0', 'max_pool_size' => '6', 'passenger_root' => '/usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini', 'passenger_version' => '4.0.53', 'pool_idle_time' => '300', 'temp
have one accepted answer. Are you sure you want to replace the current answer with this one? Yes, I'm sure. Changed your mind? You previously marked this answer as accepted. Are you sure you want to unaccept it? Yes, I'm sure. Sign Up Log In submit Tutorials Questions Projects Meetups Main Site logo-horizontal DigitalOcean Community Menu Tutorials Questions Projects Meetups Main Site Sign Up Log In submit View All Results By: anilapu Subscribe Subscribed Share 0 403 forbidden error when insatlling rails+nginx+passenger February 20, 2014 4.6k views root@navaratanhosts:/opt/nginx/logs# tail -f /var/log/nginx/error.log 2014/02/20 08:05:52 [error] 19961#0: *5 directory index of "/home/uvarsity/" is forbidden, client: 122.169.168.13, server: localhost, request: "GET / HTTP/1.1", host: "128.199.233.97" 2014/02/20 08:05:52 [error] 19961#0: *5 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 122.169.168.13, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "128.199.233.97" 2014/02/20 08:05:53 [error] 19961#0: *6 directory index of "/home/uvarsity/" is forbidden, client: 122.169.168.13, server: localhost, request: "GET / HTTP/1.1", host: "128.199.233.97" 2014/02/20 08:05:53 [error] 19961#0: *6 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 122.169.168.13, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "128.199.233.97" 2014/02/20 08:05:53 [error] 19961#0: *7 directory index of "/home/uvarsity/" is forbidden, client: 122.169.168.13, server: localhost, request: "GET / HTTP/1.1", host: "128.199.233.97" 2014/02/20 08:05:53 [error] 19961#0: *7 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 122.169.168.13, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "128.199.233.97" 2014/02/20 08:05:53 [error] 19961#0: *8 directory index of "/home/uvarsity/" is forbidden, client: