Location configuration?

I’m reading through the nginx architecture document at
http://www.aosabook.org/en/nginx.html.

The location configuration is called out in a few places. For example:

Phase handlers typically do four things: get the
location configuration, generate an appropriate
response, send the header, and send the body.

What is the location configuration, and why is it significant?

Thanks in advance.

On Thu, Dec 12, 2013 at 6:30 AM, Jeffrey W. [email protected]
wrote:

I’m reading through the nginx architecture document at
http://www.aosabook.org/en/nginx.html.

What is the location configuration, and why is it significant?

e.g.: (assuming some web root set)

# location configuration for directly serving files from directory
location /dist {
proxy_max_temp_file_size 1m;
autoindex off;
}
# default handler location configuration for passing to upstream
proxy
location ^~ / {
proxy_pass http://upstreamproxy;
}

best regards,

On Thu, Dec 12, 2013 at 9:36 AM, coderman [email protected] wrote:

   proxy_max_temp_file_size 1m;
   autoindex off;
}
# default handler location configuration for passing to upstream proxy
location ^~ / {
    proxy_pass http://upstreamproxy;
}


Thanks. For some reason, I was thinking along the lines of IP
addresses and geolocation.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs