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


  • To: nginx-ru@xxxxxxxxx
  • Subject: proxy_pass
  • From: Anton <anton200@xxxxxxxxx>
  • Date: Thu, 23 Nov 2006 11:49:50 +0500
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=LHeoe7rrzb6yGqpJTar4o28Bxn2pzu+aSWda+ueriLF/ZdooZa0oilWz07gCe0ds1l6pbgOc8NqoEJ20bO5pgyGdcLCxmvekzpHZVrgm7FVFfw0vPGT/RI5pVsoiECG+4ueS8zlfT8Y52+xnAyz6M3BcftGnxLfJtgUKKYQBOO8=

Hi.

  :  http://www.site.ru/dir   
http://www.site.ru/dir/.   index.php.
 nginx   .    :

  server {
       listen      80;
       server_name site.ru www.site.ru;
       access_log  /var/www/cs/logs/access.log my;
       location / {
           proxy_pass          http://localhost:81;
           proxy_set_header    X-Real-IP $remote_addr;
           client_body_buffer_size 128k;
           proxy_buffer_size           4k;
           proxy_buffers               8 32k;
           proxy_busy_buffers_size     64k;
           proxy_temp_file_write_size  64k;
       }
       location ~* ^.+\.(jpg|jpeg|gif|png|css)$ {
           root        /var/www/site/www;
       }
   }

   dir -> dir/  . 
proxy_redirect     http://localhost:81/ /;
  .

  ?
--
engineer


 




Copyright © Lexa Software, 1996-2009.