railscasts: 500 Internal Server Error

I am trying to install nginx on my Linode server using steps provided in RailsCasts webcast but every time I am getting "500 Internal Server Error" error message after installing nginx. Per web-cast, if should show "Welcome to nginx!" page.

apt-get -y update

apt-get -y install curl git-core python-software-properties

nginx

add-apt-repository ppa:nginx/stable

apt-get -y update

apt-get -y install nginx

service nginx start

Ref: http://railscasts.com/episodes/335-deploying-to-a-vps

Any help is much appreciated. Is there any way to look into nginx log file to identify the issue?

Thanks

2 Replies

What do nginx's log files say? It should explain why you are hitting the 500 internal error.

-Tim

I had the same error and I am not sure what the actual root of this issue is, maybe a missing default index.html file, however, plough on with the rest of that tutorial, it will work fine.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct