proxy_pass

Anton Nagorniy anton20vlad mail.ru
16 16:21:02 UTC 2012


 .  :

server {
 listen *:80;
 server_name test100.test.org.ua;
 proxy_set_header Host test100.test.org.ua;
 location / {
  rewrite ^(.*)$ https://test100.test.org.ua$1 permanent;
 }
}


server {
 listen 443;
 client_max_body_size 20M;
 server_name test100.test.org.ua;
 access_log /var/log/nginx-access.log;
 
 ssl on;
 ssl_certificate /var/sites/test/certs/STAR.crt;
 ssl_certificate_key /var/sites/test/certs/rsa.txt;

 ssl_session_timeout 10m;

 ssl_protocols SSLv2 SSLv3 TLSv1;
 ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
 ssl_prefer_server_ciphers on;

 location ~* /staticmap {
  proxy_pass http://maps.google.com;
  proxy_set_header X-Real-IP $remote_addr;
 }
 ............ 
 location ~* /maps {
  proxy_pass http://maps.google.com;
  proxy_set_header X-Real-IP $remote_addr;
 }
 
 location / {
 uwsgi_pass 127.0.0.1:20000;
 include uwsgi_params;
 }
}
https://test100.test.org.ua/staticmap?center=48.929232,23.915803&zoom=7&size=169x169&maptype=roadmap&hl=ru&markers=48.929232,23.915803&key=ABQIAAAAdjuQob3sZgFSxuD7BZVo7RTQHxrkcGhVJ9YErQt4UNPyB68Q_RTRSBM7ztEh2vUrYMADpwEXL7LxYA

    .      (  ),   ,   ӣ .        src="< >"          .  ,       (  ţ   )

 :

93.75.63.42 - - [16/Jan/2012:17:48:49 +0200] "GET /staticmap?center=48.929232,23.915803&zoom=7&size=169x169&maptype=roadmap&hl=ru&markers=48.929232,23.915803&key=ABQIAAAAdjuQob3sZgFSxuD7BZVo7RTQHxrkcGhVJ9YErQt4UNPyB68Q_RTRSBM7ztEh2vUrYMADpwEXL7LxYA HTTP/1.1" 200 22435 "https://test100.test.org.ua/ru/project/25/" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1"


       location ~* /staticmap? 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-ru/attachments/20120116/fbd0ed89/attachment.html>


nginx-ru