Welcome! Log In Create A New Profile

Advanced

location{} hassles:(

Matthew Ngaha
December 04, 2013 08:12PM
Hey all I can't seem to get the hang of how to use/write location
blocks. I have mailed the list before and I do understand how it works
but what I've tried fails.

I have tried a few things and in both cases i don't think what i'm
doing is making a difference. Here they are:

http://bpaste.net/show/YXFXLuJ1Uc1UFQDc8ctn/

The 1st test was to put location {} nested into the main location {}
that was already in nginx.conf. I put the "deny all;" just to see if
it would find or ignore/ my new location {} but the nested location
test directory/file isn't denying access.

The 2nd location {} test is below the main one. In the installed
nginx folder it uses html/ as the root, i tried to create a test
"delete" folder as an alternative location to the html root folder but
i can't seem to get it right. My browser returns a "404 Not Found"
when i try to access files in localhost/delete.

In both cases my added locations {} are being ignored. Any ideas what i can do?

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

location{} hassles:(

Matthew Ngaha December 04, 2013 08:12PM

Re: location{} hassles:(

Maxim Dounin December 05, 2013 10:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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