Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

proxy_pass




, All

nginx , . .
http://forum.nginx.org/read.php?21,107888 . nginx version: nginx/0.8.44

:

server {
listen *:80;
server_name tst.plone.lan site.plone.lan mgmt.plone.lan

set $backend http://localhost:8080;
set $zope_prefix /VirtualHostBase/http/$host/w/Site.Plone.Lan/Main/VirtualHostRoot;

location / {
proxy_set_header Host $host;
proxy_pass $backend$zope_prefix$uri;
}
}

%20 "".



192.168.1.20 - - [23/Jul/2010:16:20:36 +0400] "GET /portal_javascripts/Plone%20Tableless/toc.js HTTP/1.1" 200 2129 "-" "Opera/9.80 (X11; Linux i686; U; en) Presto/2.5.29 Version/10.60"

Κ
127.0.0.1 - Anonymous [23/Jul/2010:16:23:39 +0400] "GET /VirtualHostBase/http/site.plone.lan/w/Site.Plone.Lan/Main/VirtualHostRoot/portal_javascripts/Plone Tableless/toc.js HTTP/1.0" 400 269 "http://lbg.pik.ru/kupit-kvartiru" "Mozilla/5.0 (compatible; Konqueror/4.4; Linux) KHTML/4.4.5 (like Gecko) SUSE"

.. /Plone Tableless/ .

:

server {
listen *:80;
server_name tst.plone.lan site.plone.lan mgmt.plone.lan

location / {
rewrite ^/(.*)$ /VirtualHostBase/http/$host/w/Site.Plone.Lan/Main/VirtualHostRoot/$1 break;

proxy_set_header Host $host;
proxy_pass http://localhost:8080;
}
}

, %20. proxy_pass .

- - .
.


-- 
------------------------------                                                                             
Emil Muratov
                                                                                                           

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.