Plugin Author
rukbat
(@rukbat)
Hi Ovidiu and thanks for your interest in our plugin.
You can find a Nginx Configuration example in the Overview submenu page in Nginx Manager plugin page.
Hope this helps.
Thread Starter
Ovidiu
(@ovidiu)
ah, I see. I should be fine with those examples, except I am not sure what these lines are supposed to be/mean/do:
proxy_pass http://ALL_backend;`
and
proxy_pass http://ALL_ADMIN_backend;
what do I replace ALL_backend with? are those variables?
Thread Starter
Ovidiu
(@ovidiu)
oh and did Iread this right that all I need to replace in that example are:
– YOUR_CACHE_NAME
– /path/to/cache/your_cache
and maybe the caching times/duration, I mean the rest are just set variables, right?
proxy_pass http://ALL_backend;
ALL_backend and ALL_ADMIN_backend are two variable that contains the addresses of all the backend and admin backend server.
In our configuration we have something like
upstream ALL_backend {
server 111.2.3.1:80;
server 111.2.3.2:80;
server 111.2.3.3:80;
...
server 127.0.0.1:8080 backup;
}
upstream ALL_ADMIN_backend {
server 111.2.4.1:80;
server 111.2.4.2:80;
...
server 127.0.0.1:8080 backup;
}
About the things to change: the other values are about the cache duration etc. It’s better you read NGINX wiki for details.
ciao
Thread Starter
Ovidiu
(@ovidiu)
thanks for all that info, but I am wondering why the Nginx Configuration example in the Overview submenu page in Nginx Manager plugin page doesn’t even mention the need to set up the backends as Hpatoio explained. I think that is valuable information.
Btw. is there a specific need to have a separate proxy for ALL_backend and ALL_ADMIN_backend?