<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2014-10-23 12:01 GMT+04:00 Vladimir Skubriev <span dir="ltr"><<a href="mailto:vladimir@skubriev.ru" target="_blank">vladimir@skubriev.ru</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>     ,    rewrite,   rewrite'   nginx  backend'  /plone  /</div><div></div><div>  ?</div></blockquote><div><br></div><div><br></div><div>localtion /plone/ {</div><div>  proxy_pass <a href="http://plone/">http://plone/</a>;</div><div>}</div><div><br></div><div>   .</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div></div><div>22.10.2014, 17:13, "Vladimir Skubriev" <<a href="mailto:vladimir@skubriev.ru" target="_blank">vladimir@skubriev.ru</a>>:</div><blockquote type="cite"><div><div class="h5"><div>    plone     zope</div><div></div><div>  nginx - frontend:</div><div></div><div><div>upstream zope {</div><div>  server <a href="http://192.168.128.16:8080" target="_blank">192.168.128.16:8080</a>;</div><div>}</div><div></div><div>server {</div><div>  # ENABLE FOR redirect always to SSL site let's go ssl only now.</div><div>  #rewrite   ^  https://$server_name$request_uri? permanent;</div><div></div><div>  listen 80;</div><div>  server_name <a href="http://www.example.com/" target="_blank">www.example.com</a>;</div><div>  access_log /var/log/nginx/example-access.log;</div><div>  error_log /var/log/nginx/example-error.log;</div><div></div><div>    proxy_redirect         off;</div><div>    proxy_set_header        Host          $host;</div><div>    proxy_set_header        X-Real-IP        $remote_addr;</div><div>    proxy_set_header        X-Forwarded-For     $proxy_add_x_forwarded_for;</div><div>    client_max_body_size      0;</div><div>    client_body_buffer_size     128k;</div><div>    proxy_connect_timeout      90;</div><div>    proxy_send_timeout       90;</div><div>    proxy_read_timeout       90;</div><div>    proxy_buffer_size        4k;</div><div>    proxy_buffers          4 32k;</div><div>    proxy_busy_buffers_size     64k;</div><div>    proxy_temp_file_write_size   64k;</div><div></div><div>  location / {</div><div>    proxy_pass <a href="http://192.168.128.16:8080/" target="_blank">http://192.168.128.16:8080</a>;</div><div>    rewrite ^/(.*)$ /VirtualHostBase/http/<a href="http://example.ru:80/exampleru/VirtualHostRoot/$1" target="_blank">example.ru:80/exampleru/VirtualHostRoot/$1</a> break;</div><div></div><div>  }</div><div></div><div>  location ~* /plone/ {</div><div>    proxy_pass <a href="http://192.168.128.16:8080/" target="_blank">http://192.168.128.16:8080</a>;</div><div>    #rewrite ^(.*) <a href="http://192.168.128.16:8080/manage_main" target="_blank">http://192.168.128.16:8080/manage_main</a>;</div><div>    allow  <a href="http://192.168.128.0/24" target="_blank">192.168.128.0/24</a>;</div><div>    allow  <a href="http://192.168.129.0/24" target="_blank">192.168.129.0/24</a>;</div><div>    allow  127.0.0.1;</div><div>    deny all;</div><div>  }</div><div></div><div>}</div></div><div></div><div><span style="font-size:12.7273px"> <a href="http://example.com" target="_blank">example.com</a> ,    ,   ,     rewrite       zope.    .</span></div><div></div><div><span style="font-size:12.7273px">      ,    zope       <a href="http://example.com/plone" target="_blank">example.com/plone</a>.</span></div><div></div><div><span style="font-size:12.7273px">  (</span><span style="font-size:12.7273px"><a href="http://192.168.128.16:8080/manage_main" target="_blank">http://192.168.128.16:8080/manage_main</a></span><span style="font-size:12.7273px">)   ,   rewrite.</span></div><div></div><div><span style="font-size:12.7273px">    </span><span style="font-size:12.7273px">location ~* /plone/,         .</span></div><div></div><div><span style="font-size:12.7273px">     ך</span></div><div></div><div><div style="font-size:12.7273px">  location ~* /plone/ {</div><div style="font-size:12.7273px">    proxy_pass <a href="http://192.168.128.16:8080/" target="_blank">http://192.168.128.16:8080</a>;</div><div style="font-size:12.7273px">    #rewrite ^(.*) <a href="http://192.168.128.16:8080/manage_main" target="_blank">http://192.168.128.16:8080/manage_main</a>;</div><div style="font-size:12.7273px">    allow  <a href="http://192.168.128.0/24" target="_blank">192.168.128.0/24</a>;</div><div style="font-size:12.7273px">    allow  <a href="http://192.168.129.0/24" target="_blank">192.168.129.0/24</a>;</div><div style="font-size:12.7273px">    allow  127.0.0.1;</div><div style="font-size:12.7273px">    deny all;</div><div style="font-size:12.7273px">  }</div><div style="font-size:12.7273px"></div><div style="font-size:12.7273px">      ?</div></div><div></div><div><span style="font-size:12.7273px">       -   ͚</span>        zope  url  <a href="http://example.com/plone" target="_blank">example.com/plone</a><span style="font-size:12.7273px">?</span></div><div></div><div><span style="font-size:12.7273px">     .</span></div><div><span style="font-size:12.7273px">     .</span><span style="font-size:12.7273px"> .</span></div><div><span style="font-size:12.7273px">.</span></div><div></div><div></div><div>--</div><div>Faithfully yours,</div><div></div><div>Vladimir Skubriev</div><div></div></div></div>,<p>_______________________________________________<br>nginx-ru mailing list<br><a href="mailto:nginx-ru@nginx.org" target="_blank">nginx-ru@nginx.org</a><br><a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a></p></blockquote><div class="HOEnZb"><div class="h5"><div></div><div></div><div>--</div><div>Faithfully yours,</div><div></div><div>Vladimir Skubriev</div><div></div></div></div><br>_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a><br></blockquote></div><br></div></div>