On 19 Jul 2010, at 17:48, Pål Bergström wrote:

So what did you do then? Point the top root of the nginx server to
your Rails' public folder?

Good question. :-)

I did a mistake. I followed the tutorial at mod_rails. I should have
understood that I have to set it up the same way I have it with LSWS.
With separate ports for each app. I changed my app to port 3001 instead
of 80. Now it works.

Good to hear :-)

You should be able to run nginx on OS X on port 80 too btw. Just make sure you run it as a sudo user (or as root). You're best off running nginx as a LaunchDaemon and adding some domains to /etc/hosts (or set up a local dns server, which would be even better), so you can run multiple rails app under the same nginx instance without having to stop the server, change the root, start the server etc.


Best regards

Peter De Berdt

--
You received this message because you are subscribed to the Google Groups "Ruby on 
Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to