Issue with upstream

Phil Bayfield phil at techlightenment.com
Tue Nov 16 16:16:25 MSK 2010


I'm having some problems configuring upstream servers with localhost backup
(error page)

upstream backend1 {
    server 1.2.3.4;
    server 2.3.4.5;
    server localhost backup;
}

upstream backend2 {
    server 3.4.5.6;
    server 4.5.6.7;
}

Works, but:

upstream backend1 {
    server 1.2.3.4;
    server 2.3.4.5;
    server localhost backup;
}

upstream backend2 {
    server 3.4.5.6;
    server 4.5.6.7;
    server localhost backup;
}

Causes:

Testing nginx configuration: [emerg]: invalid parameter "backup"

Is this a bug?

Cheers
Phil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101116/7971bd29/attachment.html>


More information about the nginx mailing list