Answer the question
In order to leave comments, you need to log in
Why is the Rails route not processing requests?
Such a problem.
Route
Rails.application.routes.draw do
get '/welcome/index'
get '/feed/index', to: 'feed#index'
root 'welcome#index'
end
server {
listen 80;
passenger_enabled on;
rails_env development;
root /var/www/example.com/public;
index index.html index.htm index.nginx-debian.html;
server_name example.com www.example.com;
location / {
try_files $uri $uri/ =404;
}
}
Answer the question
In order to leave comments, you need to log in
stackoverflow.com/questions/24257250/nginx-passang...
As a result, the nginx config should look like this:
server {
listen 80;
passenger_enabled on;
rails_env development;
root /var/www/example.com/public;
index index.html index.htm index.nginx-debian.html;
server_name example.com www.example.com;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question