Re: Problem configuring Nginx to host SpreeCommerce - 502 error

2013-03-09 Thread mex
ok,your config is a little confused. in your @ruby - part you should proxy_pass to your unicorn - server proxy_passhttp://unicorn_server; (thats why you put your definition there :) --- OK, so I've gone through the documentation on

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

2013-03-07 Thread mex
Joseph O. Wrote: --- ok, first make sure your railsapp is loading as expected and working w/out nginx in front; you can check it from that machine using w3m/lynx or telnet. if this works we'll check the nginx-part. *sigh* Clearly I am missing

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

2013-03-07 Thread Joseph O.
OK, so I've gone through the documentation on the Nginx wiki, and I still only have a minimal grasp on how to configure the it to serve Spree via Unicorn. Things are now back where they started (with a 502 error), but I am making some progress, however, in that the server now points to the

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

2013-03-06 Thread Joseph O.
Ah, thank you. Removing the site configuration file did fix the gateway error, but now the server is still pointing at the default Nginx welcome page. Can you (or anyone else here) give me any advice on how to get the server to point to my actual service? BTW, you pointed out that there was an

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

2013-03-06 Thread mex
Joseph O. Wrote: --- Ah, thank you. Removing the site configuration file did fix the gateway error, but now the server is still pointing at the default Nginx welcome page. Can you (or anyone else here) give me any advice on how to get the

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

2013-03-06 Thread Joseph O.
*sigh* Clearly I am missing something here, as the only nginx.conf file I have is the one I posted last night. There is no upstream server; the code for that was from the example config file I was trying to modify for my purposes. It seems that this copypasta approach isn't adequate for

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

2013-03-05 Thread mex
looks like a recursion to me, no? you point your nginx.conf to proxy_pass to http://www.masterjoestoybox.net/ and then you define with your mjtb a config that listens to www.masterjoestoybox.net and proxy_passes to http://www.masterjoestoybox.net/ and you configure a upstream unicorn_server in