11-22-2015, 06:01 PM
(11-22-2015, 10:45 AM)Conan Wrote:(11-18-2015, 05:08 PM)RickB Wrote:(11-17-2015, 11:06 PM)Conan Wrote: First, you said "reproducing" not copying
Reporoducing includes making work based on your work.
Second, this is what i meant
it's more convenient In my opinion because you don't need to type root in every location blockCode: (Select All)root /var/www;
location / {
#settings here
}
Both will work. Just do what you like most
I know both will work.
Some sites say it's faster than putting it in the location block.
Also it's more convenient as I said. No need to put it in every location block. Also it helps make a smaller config.
It might be a little faster, since the file is smaller. I don't really know how nginx reads the config. I don't think the impact of putting "root" outside the location { } will be noticable...