Re: missing /etc/nginx/sites-available

2014-02-10 Thread Josh Stratton
> nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed > > Kinda lost here ... > > > 2014-02-10 17:50 GMT+01:00 Josh Stratton : > > I'm new to nginx myself, but I'm guessing because you're not using the >> package manager to install ngi

Re: missing /etc/nginx/sites-available

2014-02-10 Thread Josh Stratton
I'm new to nginx myself, but I'm guessing because you're not using the package manager to install nginx. The install location in configured by the package. Following the build steps in your link... sed -e "s|%%PREFIX%%|/usr/local/nginx|" \ -e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \ -

Re: server blocks configured, but getting "hello world" of nginx

2014-02-03 Thread Josh Stratton
On Monday 03 February 2014 12:59:28 Josh Stratton wrote: > > What does the DNS server have to do with it? I thought it just > translated > > domain names to IP addresses. I thought the browser queries the DNS, > gets > > the IP from the domain name (which is the same for both d

Re: server blocks configured, but getting "hello world" of nginx

2014-02-03 Thread Josh Stratton
request to that IP address with the domain inside the HTTP header, which nginx uses to determine the correct server block. On Mon, Feb 3, 2014 at 12:42 PM, Valentin V. Bartenev wrote: > On Monday 03 February 2014 12:32:53 Josh Stratton wrote: > > Right, I actually have those lines comm

Re: server blocks configured, but getting "hello world" of nginx

2014-02-03 Thread Josh Stratton
.com/public_html; index index.html index.htm; ... } On Mon, Feb 3, 2014 at 12:12 PM, Valentin V. Bartenev wrote: > On Monday 03 February 2014 11:48:41 Josh Stratton wrote: > > > or to the first one in the configuration if there is no such > > > parameter. > >

Re: server blocks configured, but getting "hello world" of nginx

2014-02-03 Thread Josh Stratton
ble/strattonbrazil.com: #listen [::]:80 default_server ipv6only=on; /etc/nginx/sites-available/morebearsmore.com: #listen [::]:80 default_server ipv6only=on; On Mon, Feb 3, 2014 at 11:43 AM, Valentin V. Bartenev wrote: > On Monday 03 February 2014 11:21:06 Josh Stratton wrote: > > How

Re: server blocks configured, but getting "hello world" of nginx

2014-02-03 Thread Josh Stratton
back. I still don't understand why it fell back to the other one. On Mon, Feb 3, 2014 at 11:07 AM, Valentin V. Bartenev wrote: > On Monday 03 February 2014 10:52:29 Josh Stratton wrote: > > Nevermind. I found the answer here that fixed it. I'm redirecting from > > www no

Re: server blocks configured, but getting "hello world" of nginx

2014-02-03 Thread Josh Stratton
As a test, if I add a querystring to see if it breaks the cache, it does work. Is this an ISP cache? www.morebearsmore.com goes to strattonbrazil.com server block www.morebearsmore.com?foo=7 goes to the correct morebearsmore.com server block On Mon, Feb 3, 2014 at 10:55 AM, Josh Stratton wrote

Re: server blocks configured, but getting "hello world" of nginx

2014-02-03 Thread Josh Stratton
pache when I tried it) but not my desktop? On Mon, Feb 3, 2014 at 10:52 AM, Josh Stratton wrote: > Nevermind. I found the answer here that fixed it. I'm redirecting from > www now. Still don't understand why it fell back to the other server > block. > > > http://stacko

Re: server blocks configured, but getting "hello world" of nginx

2014-02-03 Thread Josh Stratton
n 301 http://morebearsmore.com$request_uri; } On Mon, Feb 3, 2014 at 10:42 AM, Josh Stratton wrote: > I think I have everything working as expected. The only thing that's > still strange to me is when I go to the morebearsmore.com domain with > "www" prefixed to it, it

Re: server blocks configured, but getting "hello world" of nginx

2014-02-03 Thread Josh Stratton
quot; to one or the other. Is strattonbrazil.com just happening to be the fallback? On Mon, Feb 3, 2014 at 9:13 AM, Josh Stratton wrote: > This is my nginx.conf page, which I haven't done anything with. The > /etc/nginx/conf.d/ directory on my machine is empty. > > user www-data; > wo

Re: server blocks configured, but getting "hello world" of nginx

2014-02-03 Thread Josh Stratton
# Virtual Host Configs ## include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } On Mon, Feb 3, 2014 at 8:53 AM, Valentin V. Bartenev wrote: > On Sunday 02 February 2014 09:14:03 Josh Stratton wrote: > > I've followed the tutorial below to setup a couple of serve

server blocks configured, but getting "hello world" of nginx

2014-02-02 Thread Josh Stratton
I've followed the tutorial below to setup a couple of server blocks, but I get the "Welcome to nginx" message every time. https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3 $ ls -l /etc/nginx/sites-available/ total 8 -rw-r--r-- 1