Re: Issue with my proxy configuration

2013-04-22 Thread mex
is your Appserver hostname-aware? your error 500 should come from your appserver; check your logfiles on that part http://wiki.nginx.org/HttpProxyModule Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238537,238570#msg-238570 ___ nginx mail

Re: Issue with my proxy configuration

2013-04-22 Thread Jörg Kastning
Hi. I tried both and it gets a little bit better. But now I get a 500-error when trying to access http://host.domainname.de. The url returned is http://host.domainname.de/AppName/main.aspx?svid=7. At first I thought the Webserver is broken but I still can access the Webapplication via http://:8081

Reg. nginx_tcp_proxy_module

2013-04-22 Thread ESWAR RAO
Hi All, I have a below setup: netcat client (nc localhost 8081) =>nginx server(8081) with tcp_proxy module=>2 netcat servers(8031 and 8032) $ nc localhost 8081 bii $ nc -lk 8031 bii $ nc -lk 8032 If I kill the process $ nc -lk 8031, the client is also

Re: Nginx wiki points to 1.2.6 as being latest stable

2013-04-22 Thread Maxim Dounin
Hello! On Mon, Apr 22, 2013 at 07:10:33PM -0700, Cliff Wells wrote: > Will do. Thanx. > Also, I'm going to be moving to a new colo shortly, so we'll > need to update wiki.nginx.org to point to a new address. Would you be > the one to do this? Better person is Sergey Budnevitch , cc'd. > > Cl

Re: nginx tips for localhost development

2013-04-22 Thread Ian M. Evans
On Mon, April 15, 2013 1:49 pm, Francis Daly wrote: > On the nginx side, there should be approximately nothing special to do. > > The nginx.conf that works on your production server can be put onto your > development server; "listen" directives which specify ip addresses may > need to be changed, a

Re: nginx cache, worth it to put it on a ramdisk?

2013-04-22 Thread mex
i made some benchmarks lately and it loks like it doesnt matter for smaller caches, since os-caching is smart enough. if you really want to know just test yourself. regards, mex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238562,238565#msg-238565 _

nginx cache, worth it to put it on a ramdisk?

2013-04-22 Thread Joseph Cabezas
Hello, I have a reverse proxy that has a cache set up for static content working, as traffic increases iam wondering if its worth it to put the cache on a ramdisk or would the normal file caching/buffer in ram from the linux kernel be sufficient? The size of the cache is 30mb. Thanks Joseph

Re: Nginx wiki points to 1.2.6 as being latest stable

2013-04-22 Thread Cliff Wells
Will do. Also, I'm going to be moving to a new colo shortly, so we'll need to update wiki.nginx.org to point to a new address. Would you be the one to do this? Cliff On Tue, 2013-04-23 at 00:40 +0400, Maxim Dounin wrote: > Hello! > > On Mon, Apr 22, 2013 at 11:27:43AM +0100, Jonathan Matthews wr

Emulate SSI 'exec cmd' with nginx

2013-04-22 Thread lpr
Dear all Trying to move my pages from Apache to nginx (1.2.1 on Debian stable with backports), I run into the problem of having used SSI's 'exec cmd' for more than a decade quite intensively. What is the best and easiest way to emulate 'exec cmd' with nginx? For example, in my footers I make use

Re: auth_request and auth_request_set confusion ...

2013-04-22 Thread Maxim Dounin
Hello! On Mon, Apr 22, 2013 at 12:23:59PM +0200, Dale Gallagher wrote: > Hi > > I'd appreciate it if someone could enlighten me as to why the following > isn't working as expected. I'm trying to make the proxying to php dynamic - > in other words, depending on the authenticated user, requests wi

Re: Nginx wiki points to 1.2.6 as being latest stable

2013-04-22 Thread Maxim Dounin
Hello! On Mon, Apr 22, 2013 at 11:27:43AM +0100, Jonathan Matthews wrote: > As per subject, http://wiki.nginx.org/Install#Source_Releases points > towards 1.2.6. > > I don't personally have the ability to update the wiki (I'm not sure > if non @nginx.org people ever do?) Yep, the page looks out

Re: RE: nginx eating all RAM, log files?

2013-04-22 Thread mex
man ps | grep RSS man ps | grep VSZ when using a tool like top: real_free = free + cached you might want to try htop for a better continuous display your ram is fine :) regards, mex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,238547,238556#msg-238556 ___

RE: nginx eating all RAM, log files?

2013-04-22 Thread Joseph Cabezas
Maxim, Thank you...!! Regards, Josephan/listinfo/nginx ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

RE: nginx eating all RAM, log files?

2013-04-22 Thread Joseph Cabezas
Hello!, This is the output of ps, iam having a hard time interpreting the memory usage perhaps you can help me differ? USER PID %CPU %MEMVSZ RSS TTY STAT START TIME COMMAND root 18951 0.0 0.1 195892 6340 ?Ss Apr16 0:00 nginx: master process /usr/sbin/nginx

Re: nginx eating all RAM, log files?

2013-04-22 Thread Maxim Dounin
Hello! On Mon, Apr 22, 2013 at 06:30:41PM +, Joseph Cabezas wrote: > I have two nginx instances (nginx/1.0.15) on a 4GB RAM machine. > Each instance runs fewer than 25 requests as reported with > stub_status on; > > The problem is that once nginx is started from scratch it starts > eatin

Re: nginx eating all RAM, log files?

2013-04-22 Thread Richard Kearsley
Hi Are you sure it's not the linux file/buffer cache that's using all your ram? (does ps/top show nginx or the worker processes using it directly?) Linux and most/all other unix variants will fill up unused ram with cached versions of the most recently used files so they don't have to be read f

Re: nginx eating all RAM, log files?

2013-04-22 Thread Miguel Clara
Before anything I suggest you upgrade you nginx install... you're running nginx/1.0.15, the last satble version is 1.2.8! It might be some bug that was fixing in the mean time! On Mon, Apr 22, 2013 at 7:30 PM, Joseph Cabezas wrote: > I have two nginx instances (nginx/1.0.15) on a 4GB RAM machin

nginx eating all RAM, log files?

2013-04-22 Thread Joseph Cabezas
I have two nginx instances (nginx/1.0.15) on a 4GB RAM machine. Each instance runs fewer than 25 requests as reported with stub_status on; The problem is that once nginx is started from scratch it starts eating (or reserving?) RAM progressively as reported by free -m, up to the point where it

Re: how to debug memory leak/grow

2013-04-22 Thread Maxim Dounin
Hello! On Mon, Apr 22, 2013 at 04:38:25AM -0400, gadh wrote: > in my nginx, compiled with my modules, i see that under every day usage (its > on a web site , i cannot reproduce this in my lab) the memory usage of nginx > grows all the time, it has many open connections (but the total number of >

Re: 1.3 stable version release

2013-04-22 Thread Maxim Dounin
Hello! On Mon, Apr 22, 2013 at 01:00:15PM +0530, Vini Gupta wrote: > Hi, > > I wanted to use the static etag support module for nginx. I found a module > written by mikewest here . > But it doesn't work. Also its pretty old (4 years old). > I recen

Re: Feature extension to auth_request module: FastCGI authorizer

2013-04-22 Thread Maxim Dounin
Hello! On Mon, Apr 22, 2013 at 12:35:51AM -0400, davidjb wrote: > I've written an additional feature into the Auth Request module (from > http://mdounin.ru/hg/ngx_http_auth_request_module/) that allows a user to > control the behaviour of the auth_request in such a way that it can act as a > Fast

Re: which version to use in production - 1.2.x or 1.3.x

2013-04-22 Thread Maxim Dounin
Hello! On Sun, Apr 21, 2013 at 09:31:52AM -0400, gadh wrote: > i know that 1.3.x is development version, but is it stable enough to be used > in production? as stated here: > http://forum.nginx.org/read.php?2,221377,221390#msg-221390 > > Tell me if i figured that right : if the 1.2.x is based on

Re: Subrequests: returning response to client

2013-04-22 Thread Maxim Dounin
Hello! On Mon, Apr 22, 2013 at 12:17:31AM -0400, davidjb wrote: > Maxim Dounin Wrote: > --- > > > What you are trying to do should be possible with > > NGX_HTTP_SUBREQUEST_IN_MEMORY - this way subrequest body will be > > available in memory

Re: Issue with my proxy configuration

2013-04-22 Thread Andrey Feldman
Hi. Try something like: location / { proxy_pass http://:8081/AppName/; } Or location / { proxy_pass http://:8081/AppName/$uri; } On Mon, Apr 22, 2013 at 5:17 PM, Jörg Kastning wrote:

Issue with my proxy configuration

2013-04-22 Thread Jörg Kastning
Hello. In our lan I can reach my webapplication with an url like http:// :8081/AppName. I try to configure nginx to forward requests from wan site to this server. All firewall policies needed are configured and the dns entry for access from wan are set and reachable. I tried the following configu

Nginx wiki points to 1.2.6 as being latest stable

2013-04-22 Thread Jonathan Matthews
As per subject, http://wiki.nginx.org/Install#Source_Releases points towards 1.2.6. I don't personally have the ability to update the wiki (I'm not sure if non @nginx.org people ever do?) Cheers, Jonathan -- Jonathan Matthews // Oxford, London, UK http://www.jpluscplusm.com/contact.html

auth_request and auth_request_set confusion ...

2013-04-22 Thread Dale Gallagher
Hi I'd appreciate it if someone could enlighten me as to why the following isn't working as expected. I'm trying to make the proxying to php dynamic - in other words, depending on the authenticated user, requests will be proxied to that user's PHP socket. Both the login and auth locations are pro

Re: "writev() failed (134: Transport endpoint is not connected)" when upstream down

2013-04-22 Thread Branden Visser
Thanks Andrei, much appreciated! Cheers, Branden On Mon, Apr 22, 2013 at 4:20 AM, Andrei Belov wrote: > Branden, > > On Apr 5, 2013, at 2:24 , Branden Visser wrote: > >> Hello, I've found that when there are upstream servers unavailable in >> my upstream group, applying a little bit of load on

Re: Trouble migrating from pound to nginx

2013-04-22 Thread Jörg Kastning
You're right. I added the following line to my location block: proxy_set_header Host "my.forced.hostname"; Now I get the expected Site. Thanks for your support. 2013/4/22 Jonathan Matthews > I'm on a sufficiently dreadful connection that I can't examine your > configs on pastebin. Having said

how to debug memory leak/grow

2013-04-22 Thread gadh
in my nginx, compiled with my modules, i see that under every day usage (its on a web site , i cannot reproduce this in my lab) the memory usage of nginx grows all the time, it has many open connections (but the total number of connections is high but stays roughly the same over time) and aftert a

Re: "writev() failed (134: Transport endpoint is not connected)" when upstream down

2013-04-22 Thread Andrei Belov
Branden, On Apr 5, 2013, at 2:24 , Branden Visser wrote: > Hello, I've found that when there are upstream servers unavailable in > my upstream group, applying a little bit of load on the server (i.e., > just myself browsing around quickly, 2-3 req/s max) results in the > following errors even fo

Re: Trouble migrating from pound to nginx

2013-04-22 Thread Jonathan Matthews
I'm on a sufficiently dreadful connection that I can't examine your configs on pastebin. Having said that, I strongly suspect you're not propagating a Host header from NginX to your Apache servers. Fix that up, and I think you'll have more success. Regards, Jonathan -- Jonathan Matthews Oxford,

Trouble migrating from pound to nginx

2013-04-22 Thread Jörg Kastning
Hi. I have some trouble here migration from the loadbalancer pound to nginx. Nginx should be running as a loadbalancer for our webapplications which are hosted on apache webservers in our lan. The basic configuration looks like this: lb(nginx) -> two webservers(apache) -> one or more app

Re: 1.3 stable version release

2013-04-22 Thread Vini Gupta
Hi, I wanted to use the static etag support module for nginx. I found a module written by mikewest here . But it doesn't work. Also its pretty old (4 years old). I recently saw 1.3.3 change-list. It supports static-etag feature. But I am not sure how