arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nginx as a reverse proxy/caching server for Apache
#7
(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
root /var/www;
location / {
#settings here
}
it's more convenient In my opinion because you don't need to type root in every location block

Both will work. Just do what you like most Smile

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...


Messages In This Thread
RE: Nginx as a reverse proxy/caching server for Apache - by RickB - 11-22-2015, 06:01 PM


person_pin_circle Users browsing this thread: 2 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting