Nginx

Crearem un site-available amb la seg├╝ent configuraci├│:

upstream tryton_jsonrpc {
        server 127.0.0.1:38000;
        server 127.0.0.1:38001;
        server 127.0.0.1:38002;
}

server {
    listen 38007;
    server_name  localhost;

    location / {
#        proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
#        proxy_set_header Host $http_host;
#        proxy_redirect off;
#        proxy_connect_timeout 300;
#        proxy_send_timeout 300;
#        proxy_read_timeout 300;
#        send_timeout 300;
#        if (!-f $request_filename) {
#            proxy_pass http://127.0.0.1:8000;
#            break;
#        }
         proxy_pass http://tryton_jsonrpc;
    }
}

Develop/ServerTrytonNginx (last edited 2015-05-15 09:13:38 by resteve)

Contenidos creados por el equipo de Zikzakmedia. Creative Commons By-NC-SA

PythonZikzakmedia