public final class UpdateNginx extends Object implements Agent
Assumption is that ngnix configuration loaded from ngnix.conf
and each host has a conf file named www.example.com.conf
,
which will contain load balancing group, e.g:
upstream example_servers { server 10.0.0.1:80; server 10.0.0.2:80; } server { listen 80; server_name www.example.com; location / { proxy_pass http://example_servers; } }
This file is loaded from main ngnix.conf
using include
directive.
To install nginx on a clean server, just install it first using "apt-get" or "yum" and that's it.>
Constructor and Description |
---|
UpdateNginx()
Ctor.
|
UpdateNginx(Script spt)
Ctor.
|
public UpdateNginx() throws IOException
IOException
- If failspublic UpdateNginx(Script spt)
spt
- Script.public Iterable<org.xembly.Directive> exec(com.jcabi.xml.XML deck) throws IOException
Agent
exec
in interface Agent
deck
- The deck XMLIOException
- If failsCopyright © 2014–2015 Thindeck Inc.. All rights reserved.