Welcome! Log In Create A New Profile

Advanced

Re: nginx not using root from location

Francis Daly
July 12, 2016 01:32PM
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.

> location /testlocation {
> index index.html
> root /data/www/htdocs/test;
> }

Add a semicolon to tell nginx that your "index" directive is complete.

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx not using root from location

reaper July 12, 2016 10:47AM

Re: nginx not using root from location

Shivam Nanda July 12, 2016 12:48PM

Re: nginx not using root from location

Francis Daly July 12, 2016 01:32PM

Re: nginx not using root from location

reaper July 12, 2016 03:47PM

Re: nginx not using root from location

Francis Daly July 12, 2016 04:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 277
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