Report this

What is the reason for this report?

403 forbidden error when insatlling rails+nginx+passenger

Posted on February 20, 2014

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: 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: *8 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: *9 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: *9 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:08:16 [error] 19961#0: *10 directory index of “/home/uvarsity/” is forbidden, client: 150.214.164.140, server: localhost, request: “HEAD / HTTP/1.0”

How to overcome this problem



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

make sure your give your home folder chomd 755 permission. <br> <br>it is better to create a custom root folder for your site and give the main folder chomd 755 <br> <br>

<pre>2014/02/20 08:08:16 [error] 19961#0: *10 directory index of “/home/uvarsity/” is forbidden, client: 150.214.164.140, server: localhost, request: “HEAD / HTTP/1.0”</pre>nginx is trying to serve /home/uvarsity but there aren’t any index files so it’s returning a 403 error. <br> <br>Can you pastebin your nginx config?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.