I set up my work on nginx and the unicorn as described in Railscasts episode 293.
When I try to redirect e.g.
class PostsController < ApplicationController def show redirect_to posts_path, :notice => "Test redirect" end end
I am redirecting to http://unicorn/posts instead of http://mydomain.com/posts
Here is my nginx.conf for the application
upstream unicorn { server unix:/tmp/unicorn.scvrush.sock fail_timeout=0; } server { listen 80 default deferred;
Jakub arnold
source share