ПРОЕКТЫ 


  АРХИВ 


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]

Re: nginx proxy_pass добавляет порт в URI для директорий


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: nginx proxy_pass добавляет порт в URI для директорий
  • From: "Alexey Karagodov" <karagodov@xxxxxxxxx>
  • Date: Sat, 24 Nov 2007 02:14:34 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=HUks5s85tB9JG/+vqtMZf9FywTw/5Go+Uw/r1P+sXZw=; b=hZdJ0v7+dPbrBifHnV6FBOEXPo8wiGTml3VYiq/F7pe/bZbc5Cmbztm08gByNIBBgZL60tR0/mK213b9Ng6iBcXQs4PBYb9PW6XYHk+ekMoxwCUfXksDjA7Kfu4qyxKu2OECgnVV4EdmJmu8vwBTHmOX3EwaAYSl9GZKl4rdcvg=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=VdtUbqpdaJjcCo52lpmVb2R8j+25wy/OSg25LK97IcFAGntZpLYyLC58yHUsW6UtINwM6ID3/k7j4KlpHKJXWlmu89+sQ3lOwxr0OIJAtuYEcHefbtGuathDBjtubCWO9BMrCcx56COHEVt35EH5EO9/VukYbFwKb/yWgA20iPY=
  • In-reply-to: <op.t184epsupvebu1@xxxxxxxxxxxxxxxxxxxxxxxxx>
  • References: <op.t184epsupvebu1@xxxxxxxxxxxxxxxxxxxxxxxxx>

proxy_redirect настройте 
в доках и рассылке есть 
если будет ступор, гляну в своих конфигах 

2007/11/23, Nick Timofeev <nick@xxxxxxxxxx >:
Hi All,

Установил nginx как фронтенд к апачу
все великолепно, кроме одной проблемы
адреса папок типа http://blabla.com/folder при проксировании преобразуются
в http://blabla.com:81/folder
с файлами такого не происходит
http://blabla.com/folder/index.html остается
http://blabla.com/folder/index.html

Что я делаю не так ?
nginx version: nginx/0.6.17
вот конфиг:

user nobody nobody;
worker_processes 10;

error_log logs/error.log info;

pid /var/run/nginx.pid;

events {
worker_connections 1000;
use epoll;
}


http {
include mime.types;
default_type application/octet-stream;

access_log logs/access.log combined;

sendfile on;
tcp_nopush on;
tcp_nodelay on;

client_header_timeout 1m;
client_body_timeout 1m;
send_timeout 1m;
keepalive_timeout 75 20;
client_header_buffer_size 2k;
large_client_header_buffers 8 8k;

gzip on;
gzip_min_length 1100;
gzip_buffers 8 8k;
gzip_types text/plain;

output_buffers 8 32k;
postpone_output 1460;
server_names_hash_bucket_size 512;

server {
                 listen 123.123.123.1:80;
                 listen 127.0.0.1:80;
                 server_name blabla.com ;
                 location / {
                         proxy_pass http://123.123.123.1:81/;
                         proxy_redirect off;
                         proxy_set_header Host $host;
                         proxy_set_header X-Real-IP $remote_addr;
                         proxy_set_header X-Forwarded-For $remote_addr;
                         client_max_body_size 10m;
                         client_body_buffer_size 128k;
                         client_body_temp_path /usr/local/nginx/tmp;
                         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;
                         proxy_temp_path /usr/local/nginx/tmp;

                 location ~*
^.+\.(jpg|jpeg|gif|png|swf|mp3|avi|mpg|mpeg|wav|css|mov|pdf|ico|txt)$ {
                         root /usr/local/apache/htdocs;
                 }
         }
}


 


 




Copyright © Lexa Software, 1996-2009.