Re: forced 404 without a location display ?

2016-07-12 Thread Jonathan Vanasco
On Jul 11, 2016, at 4:27 PM, Maxim Dounin wrote: > No location information is added by nginx to error pages, and > never was. You are probably using something with 3rd party > patches. An obvious fix is to switch to using vanilla nginx > instead, it can be downloaded here: On Jul 11, 2016, a

Re: Insert Variable Values when loading a Cloud Config?

2016-07-12 Thread Francis Daly
On Mon, Jul 11, 2016 at 09:24:11PM -0400, leeand00 wrote: Hi there, > This is just a guess, but probably a hashap...or maybe a DNS server that > assigns them statically. But I suppose CoreOS has to request it from nginx, > so it could probably even just pull it out of the request. When you can

Re: nginx not using root from location

2016-07-12 Thread Francis Daly
On Tue, Jul 12, 2016 at 03:47:23PM -0400, reaper wrote: Hi there, > Yes! That was it. Thank you. Good stuff. > Strange that nginx -t didn't say anything wrong with config :( There's nothing wrong with the config. It is syntactically correct. When you request /testlocation/, nginx will look f

Re: nginx not using root from location

2016-07-12 Thread reaper
Yes! That was it. Thank you. Strange that nginx -t didn't say anything wrong with config :( Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268258,268261#msg-268261 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/lis

Re: nginx not using root from location

2016-07-12 Thread Francis Daly
On Tue, Jul 12, 2016 at 10:47:56AM -0400, reaper wrote: Hi there, > Hello. I'm obviously missing something but I'm not quite sure what. You don't have a "root" directive inside the location. Your "index" directive as-written has three arguments, although you want it to only have one. > locat

Re: nginx not using root from location

2016-07-12 Thread Shivam Nanda
Hi Reaper please check the following: 1. check the permissions of the folders. 2. define both root directive in the location. restart the nginx service and share the results. Thanks Shivam On 12 Jul 2016 20:18, "reaper" wrote: > Hello. I'm obviously missing something but I'm not quite sure w

nginx not using root from location

2016-07-12 Thread reaper
Hello. I'm obviously missing something but I'm not quite sure what. Here's one of my vhosts. server { listen 80; server_name test.local; access_log /var/log/nginx/access.log; root /data/www/htdocs/web; location / { index index.php; } location /testlocation { i