Welcome Guest | Login

403 Error - Forbidden



This is a wiki article created by HostingRails users. Please login or signup to make edits.


    This thread is devoted to help those of you who may be seeing a 403 error and wish to make it go away.  It may also be useful for those who are interested to know the correct permissions within a Rails app.  


First, double check that you have deleted a previous symlink prior to creating one for your project. In other words always run:

[~]# mv ~/public_html ~/public_html_backup

prior to running:

[~]# ln -s ~/yourapp/public ~/public_html



You are seeing this error because you do not have have your permissions set correctly.

The correct permissions are as follows:

railsapp/public - 755

All files here should be CHMOD 644 except dispatch.fcgi and dispatch.rb, which should be 755.  

All folders should be 755.



railsapp/config - 755

All files 644 - folders 755



railsapp/vendor - 755

All files 644 - folders 755



railsapp/tmp - 755

All files 644 - folders 755

--

you get the idea...

If you're still having trouble, please feel free to ask a question in our deployment troubleshooting forum and/or update the content here for the next developer. "



Hello Guest! In order to edit this article you must be an active client with us, please log in or sign up today!






Contributing Author(s):
William
Flanker