[Plone-IT] problema configurazione nginx e varnish

Vito Falco vitofalco a gmail.com
Ven 15 Gen 2010 16:08:40 UTC


Ciao,
mi dici come hai impilato i vari componenti?

NGINIX: 80
VARNISH: 8000
ZOPE: 8080
per caso?

Vito

2010/1/15 andreas <pepe.bz a gmx.net>

> ciao
>
> vi spiego il mio problema:
>
> il buildout crea un web-server nginx e una cache varnish.
> il problema sta nel fatto che se tolgo la rewrite rule da nginx, ma la
> cache non mi serve l'istanza plone nel dato path in zope nonostante
> dovrebbe pensarci varnish no?!
>
>
>
>
>
> ##############################################################################
>
>
>    # 2. Configure front-end web server
>
>
> ##############################################################################
>
>    [nginx-webserver]
>    recipe = gocept.nginx
>    nginx = nginx-build
>    configuration =
>        user ${users:nginx-webserver};
>        error_log ${buildout:directory}/var/log/main-error.log warn;
>        worker_processes 1;
>        daemon off;
>        events {
>            worker_connections 1024;
>        }
>
>        http {
>            # Proxy to Varnish cache
>            upstream cache {
>                server ${host-ip:cache}:${ports:cache};
>            }
>
>             # TIS3
>            server {
>                listen *:${ports:nginx-webserver};
>                server_name ${host-name:miosito};
>                access_log ${buildout:directory}/var/log/miosito-access.log;
>                error_log ${buildout:directory}/var/log/miosito-error.log;
>                rewrite ^/(.*)
>
>
> /VirtualHostBase/http/${host-name:miosito}:${ports:nginx-webserver}/${plone-path:miosito}/VirtualHostRoot/$1
>    last;
>                location / {
>                    proxy_pass http://cache;
>                    client_max_body_size 40M;
>                }
>            }
>
>     }
>
>
>
>
>
> ##############################################################################
>
>
>    # 3. Configure Varnish for Plone
>
>
> ##############################################################################
>
>    [cache]
>    recipe = plone.recipe.varnish
>    daemon = ${buildout:directory}/parts/varnish-build/sbin/varnishd
>    bind = ${host-ip:cache}:${ports:cache}
>    backends =
>
>
>
> /VirtualHostBase/http/${host-name:miosito}:${ports:nginx-webserver}/${plone-path:miosito}:${host-ip:miosito}:${ports:miosito}
>
>    cache-size = 2G
>    user = ${users:cache}
>    mode = foreground
>
>
> grazie in anticipo...
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Plone-IT mailing list
> Plone-IT a lists.plone.org
> http://lists.plone.org/mailman/listinfo/plone-it
> http://www.nabble.com/Plone---Italy-f21728.html
>



-- 
"Design is the method of putting form and content together. Design, just as
art, has multiple definitions; there is no single definition. Design can be
art. Design can be aesthetics. Design is so simple, that's why it is so
complicated." by Paul Rand
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lists.plone.org/pipermail/plone-plone-it/attachments/20100115/7f19d77e/attachment.html>


Maggiori informazioni sulla lista Plone-IT