Question

403 forbidden error when insatlling rails+nginx+passenger

  • Posted on February 20, 2014
  • anilapuAsked by anilapu

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


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

<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?

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>