The fact that sites-enabled contains 1 file per server is a de facto
standard. From nginx point of view, those are just include like others.
Since nginx.conf must have some include sites-enabled/*.conf rule, those
files are already loaded at http level.
To have the behavior you wish, I would do the following:
location /lalala {
alias /usr/share/webapps;
include locations/lalala.conf;
}
The locations directory shall include your per-location rules.
Note that directives working at server level might not do inside a
location. Those are 2 different scope with specific purposes.
I hope you know what you are doing. I do not know what you have in mind.
:o)
B. R.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.