Welcome! Log In Create A New Profile

Advanced

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

mex
March 07, 2013 03:26AM
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 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.

you define a upstream {} section but you dont use it later, instead of
proxy_pass $upstream you define proxy_pass to use a hostname
instead of your upstream; thats a mismatch in your config




>
> It seems that this copypasta approach isn't adequate for setting this
> up properly

+1 :)

you'll find some howtos and best-practice-guides for various applications
here: http://wiki.nginx.org/Configuration

but understanding what you're doing is key for long-time-happyness.
basically, your setup is quite simple and straight-forward.



regards,


mex
Subject Author Posted

Problem configuring Nginx to host SpreeCommerce - 502 error

Joseph O. March 05, 2013 09:58PM

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

mex March 06, 2013 01:07AM

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

Joseph O. March 06, 2013 09:54AM

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

mex March 06, 2013 11:33AM

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

Joseph O. March 06, 2013 11:56AM

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

mex March 06, 2013 03:04PM

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

Joseph O. March 06, 2013 05:16PM

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

mex March 07, 2013 03:26AM

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

Joseph O. March 07, 2013 07:00PM

Re: Problem configuring Nginx to host SpreeCommerce - 502 error

mex March 09, 2013 04:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready