Rails MultiSite App + nginx config -
i'm trying deploy multisite rails app different views , public folders each site. let's have www.foo.com , www.bar.com. inside rails_root directory have [sites] directory 2 folders inside [foo] , [bar] each folder consists of [public] , [views] folder.
my nginx configuration has that:
server { listen 80; server_name www.foo.com; root rails_root/sites/bar/public; passenger_enabled on; rails_env development; } server { listen 80; server_name www.bar.com; root rails_root/sites/bar/public; passenger_enabled on; rails_env development; }
my problem nginx can't find rails_root expects usual hierarchy public folder rails_root/public. solution this?
when referer rails_root don't mean variable use instead of writing specific path .../.../
Comments
Post a Comment