ðòïåëôù 


  áòèé÷ 


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]

Problem with proxy_pass,


  • To: nginx-ru@xxxxxxxxx
  • Subject: Problem with proxy_pass,
  • From: "yevhen" <nginx-forum@xxxxxxxx>
  • Date: Tue, 15 Oct 2013 11:03:40 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=W1X7s44z1DhwD3YbaFqDXuzZKC2Kjr4KA4G2+dukJ1M=; b=aRLxlN/rOqpbUoFKbPKryCcIF+gJsOcWZb/W/0cUtsVNrZct9mR3Hch4PYM+OhylXYVfnPY2MnP0XcQeOfcDUrcdIFGnPE+eOFPiF9qAT5tNFt9qY2ZCOXFm+3FfOczhQpyGtN3sDDeIMDkfKU/KViUYtvWo8O60L7NtKijT9Lg=;

Hi,

I am using latest nginx (1.4.3) on centos with next location configuration:

location ~^/3g {
        auth_basic      "Restricted";
        auth_basic_user_file  htpasswd;
        rewrite ^/3g/(.*)$ /$1 break;
        proxy_pass http://127.0.0.1:18001;
#       proxy_redirect off;
        proxy_redirect  127.0.0.1:18001/ /3g/;
        proxy_set_header SCRIPT_NAME /3g;
        proxy_set_header X-Script-Name  /3g;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_connect_timeout       600;
        proxy_send_timeout          600;
        proxy_read_timeout          600;
        send_timeout                600;

}

127.0.0.1 - is reverse ssh tunnel to some hardware, with apache on it.

if I use location / - all works perfect, but with location /3g opening
http://SERVER_IP/3g - I see next in firebug:

http://SERVER_IP/cgi-bin/dlDevices.plx?Command=DeviceList&Date=Tue

So somehow cgi-bin is not redirected to /3g location.

Please help.

Thank you
Yevhen

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,243720,243720#msg-243720

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


 




Copyright © Lexa Software, 1996-2009.