Re: server zope managment interface

Vladimir Skubriev vladimir at skubriev.ru
Thu Oct 23 08:48:38 UTC 2014


   :
<Products.Five.metaclass.Plone object at 0x7fc9b276f5d0>

  .

   location / {
# rewrite,   example.com   .
}

   location /   proxy_pass
  location /plone/       .
    ,  nginx   backend'    location ?


23.10.2014, 12:09, "Aleksandr Sytar" <sytar.alex at gmail.com>:
> 2014-10-23 12:01 GMT+04:00 Vladimir Skubriev <vladimir at skubriev.ru>:
>>      ,    rewrite,   rewrite'   nginx  backend'  /plone  /
>>
>>   ?
>
> localtion /plone/ {
>   proxy_pass http://plone/;
> }
>
>    .
>
>> 22.10.2014, 17:13, "Vladimir Skubriev" <vladimir at skubriev.ru>:
>>>     plone     zope
>>>
>>>   nginx - frontend:
>>>
>>> upstream zope {
>>>   server 192.168.128.16:8080;
>>> }
>>>
>>> server {
>>>   # ENABLE FOR redirect always to SSL site let's go ssl only now.
>>>   #rewrite   ^  https://$server_name$request_uri? permanent;
>>>
>>>   listen 80;
>>>   server_name www.example.com;
>>>   access_log /var/log/nginx/example-access.log;
>>>   error_log /var/log/nginx/example-error.log;
>>>
>>>     proxy_redirect         off;
>>>     proxy_set_header        Host          $host;
>>>     proxy_set_header        X-Real-IP        $remote_addr;
>>>     proxy_set_header        X-Forwarded-For     $proxy_add_x_forwarded_for;
>>>     client_max_body_size      0;
>>>     client_body_buffer_size     128k;
>>>     proxy_connect_timeout      90;
>>>     proxy_send_timeout       90;
>>>     proxy_read_timeout       90;
>>>     proxy_buffer_size        4k;
>>>     proxy_buffers          4 32k;
>>>     proxy_busy_buffers_size     64k;
>>>     proxy_temp_file_write_size   64k;
>>>
>>>   location / {
>>>     proxy_pass http://192.168.128.16:8080;
>>>     rewrite ^/(.*)$ /VirtualHostBase/http/example.ru:80/exampleru/VirtualHostRoot/$1 break;
>>>
>>>   }
>>>
>>>   location ~* /plone/ {
>>>     proxy_pass http://192.168.128.16:8080;
>>>     #rewrite ^(.*) http://192.168.128.16:8080/manage_main;
>>>     allow  192.168.128.0/24;
>>>     allow  192.168.129.0/24;
>>>     allow  127.0.0.1;
>>>     deny all;
>>>   }
>>>
>>> }
>>>
>>>  example.com ,    ,   ,     rewrite       zope.    .
>>>
>>>       ,    zope       example.com/plone.
>>>
>>>   (http://192.168.128.16:8080/manage_main)   ,   rewrite.
>>>
>>>     ʚlocation ~* /plone/,         .
>>>
>>>      
>>>
>>>   location ~* /plone/ {
>>>     proxy_pass http://192.168.128.16:8080;
>>>     #rewrite ^(.*) http://192.168.128.16:8080/manage_main;
>>>     allow  192.168.128.0/24;
>>>     allow  192.168.129.0/24;
>>>     allow  127.0.0.1;
>>>     deny all;
>>>   }
>>>
>>>       ?
>>>
>>>        -   ͚        zope  url  example.com/plone?
>>>
>>>      .
>>>      . .
>>> .
>>>
>>> --
>>> Faithfully yours,
>>>
>>> Vladimir Skubriev
>>>
>>> ,
>>>
>>> _______________________________________________
>>> nginx-ru mailing list
>>> nginx-ru at nginx.org
>>> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>>
>> --
>> Faithfully yours,
>>
>> Vladimir Skubriev
>>
>> _______________________________________________
>> nginx-ru mailing list
>> nginx-ru at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx-ru
>
> ,
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-ru

--
Faithfully yours,

Vladimir Skubriev



nginx-ru