Nginx configuration needed to dynamically rewrite a subdirectory to a subdomain

2014-01-16 Thread jamesandrewyoung
How to configure NGINX daemon so that blog.xxx.com becomes xxx.com/blog Can anyone help me? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,246545,246545#msg-246545 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listi

Re: Does it possible to submit duplicated request with the proxy_next_upstream on

2014-01-16 Thread Shafreeck Sea
OK. Thank you very much . I will do an experiment to find out this 2014/1/16 itpp2012 > renenglish Wrote: > --- > > Sorry I can’t get it . > > > > If host A has added the counter and failed to response, the request > > would be failed over to

Re: fastcgi_cache_path empty

2014-01-16 Thread Lorenzo Raffio
Thanks Steve for the reply!! Ok, so tell me if I understood correcty. You just have in your "vhost" server block this: fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:10m max_size=1000m inactive=60m; and then you have a file /etc/nginx/microcache with # Setup var defaul

Re: Errors using HttpUseridModule

2014-01-16 Thread Francis Daly
On Thu, Jan 16, 2014 at 11:15:55PM +0100, Gabriel Arrais wrote: > Francis Daly wrote in post #1133390: Hi there, > > Are they all coming from a particular browser version, for example? > > For now, I can't see any pattern and the error logs (how they are > formatted now) does not help me, they d

Re: Errors using HttpUseridModule

2014-01-16 Thread Gabriel Arrais
Thank you for the answer Francis! Francis Daly wrote in post #1133390: > On Thu, Jan 16, 2014 at 09:41:25PM +0100, Gabriel Arrais wrote: > > Hi there, > >> We're receiving a lot of errors lately concerning the format of the >> userid cookie. > > Is there any pattern to the errors that you can see?

Re: Errors using HttpUseridModule

2014-01-16 Thread Gabriel Arrais
Thank you for the answer Francis! >Is there any pattern to the errors that you can see? > >Are they all coming from a particular browser version, for example? For now, I can't see any pattern and the error logs (how they are formatted now) does not help me, they don't pass the user-agent

Re: A 503 page gets written to my proxy cache, overwriting the 200

2014-01-16 Thread Maxim Dounin
Hello! On Thu, Jan 16, 2014 at 02:50:41PM -0500, rge3 wrote: > Maxim Dounin Wrote: > --- > > > An exiting cache can be bypassed due to proxy_cache_bypass in your > > config, and 503 response can be cached if it contains > > Cache-Control and

Re: Websocket tunnel broken with existing SSL session

2014-01-16 Thread Maxim Dounin
Hello! On Wed, Jan 15, 2014 at 07:30:20PM +, Eiríkur Nilsson wrote: > Hey! > > On Wed, Jan 15, 2014 at 4:15 PM, Maxim Dounin wrote: > > > > > > It might be helpfull to see debug log and a tcpdump. See also > > http://wiki.nginx.org/Debugging for hints. > > > Debug log: http://cl.ly/142F2

Re: Errors using HttpUseridModule

2014-01-16 Thread Francis Daly
On Thu, Jan 16, 2014 at 09:41:25PM +0100, Gabriel Arrais wrote: Hi there, > We're receiving a lot of errors lately concerning the format of the > userid cookie. Is there any pattern to the errors that you can see? Are they all coming from a particular browser version, for example? > [error] 15

Errors using HttpUseridModule

2014-01-16 Thread Gabriel Arrais
Hi guys, I'm using the HttpUseridModule for storing session ids of our users. We're receiving a lot of errors lately concerning the format of the userid cookie. Basically there are two types of errors: [error] 1581#0: *20523638 client sent invalid userid cookie "sid="Cvwk2lLYLvhh3gYtDscPAg==";

Re: fastcgi_cache_path empty

2014-01-16 Thread Steve Holdoway
I think ( it's hard to read ) that you're not telling the site which http cache to use ( fastcgi_cache microcache; ). On my systems ( I'm looking at an Amazon one so RH based ), /var/cache/nginx is already in use. I set up /var/cache/nginx_fastcgi instead, which is not empty. (1GB is way too big

Re: A 503 page gets written to my proxy cache, overwriting the 200

2014-01-16 Thread rge3
Maxim Dounin Wrote: --- > An exiting cache can be bypassed due to proxy_cache_bypass in your > config, and 503 response can be cached if it contains > Cache-Control and/or Expires which allow caching. Oh, I hadn't thought of that part about t

Re: fastcgi_cache_path empty

2014-01-16 Thread Lorenzo Raffio
No one? :) 2014/1/13 Lorenzo Raffio > I wanted to try fastcgi_cache on my nginx 1.5.8 as shown here > http://seravo.fi/2013/optimizing-web-server-performance-with-nginx-and-php > > In nginx conf, http section, I added: > > fastcgi_cache_path /var/cache/nginx levels=1:2 keys_zone=microcache:10m

Re: HttpUseridModule

2014-01-16 Thread Gabriel Arrais
Flavio, I'm trying to do the same as you. Have you found any solution? I was thinking in change the expiration by myself setting the cookie again, but I think that this is ugly =/ Thank you, Gabriel Arrais -- Posted via http://www.ruby-forum.com/. _

Re: proxy_cache purge details

2014-01-16 Thread Maxim Dounin
Hello! On Thu, Jan 16, 2014 at 01:33:17PM +0100, David Watzke wrote: > Hello, > > we've got a problem with the proxy_cache feature in nginx. To be more > precise, the problem occurs when the cache loader kicks in and starts > deleting the expired files that are stored on a LVM-striped (non-raid)

Re: question on some simple codes in ngx_buf.c

2014-01-16 Thread Maxim Dounin
Hello! On Thu, Jan 16, 2014 at 02:04:45AM -0500, microwish wrote: > Hello there, > > code snippet in the definition of ngx_chain_add_copy in ngx_buf.c: > > > ll = chain; > >

Re: A 503 page gets written to my proxy cache, overwriting the 200

2014-01-16 Thread Maxim Dounin
Hello! On Thu, Jan 16, 2014 at 09:02:36AM -0500, rge3 wrote: > Hi, > > I'm trying to use the proxy cache to store regular pages (200) from my web > server so that when the web server goes into maintenance mode and starts > returning 503 nginx can still serve the good page out of cache. It works

Re: Fast CGI module "multipart/mixed" problem (it only accepts 1 "Content-Type" header)

2014-01-16 Thread Maxim Dounin
Hello! On Wed, Jan 15, 2014 at 11:56:30AM -0500, ariesone wrote: > It seems, when my FCGI server responds to NGINX with "Status: 200 > OK\r\nContent-Type: > multipart/mixed;boundary=whatever\r\n\r\nboundary=whatever\r\nContent-Type: > image/jpeg\r\n\r\n" > > The FASTCGI module is taking the 2nd

A 503 page gets written to my proxy cache, overwriting the 200

2014-01-16 Thread rge3
Hi, I'm trying to use the proxy cache to store regular pages (200) from my web server so that when the web server goes into maintenance mode and starts returning 503 nginx can still serve the good page out of cache. It works great for a few minutes but then at some point (5 to 10 minutes in) ngin

proxy_cache purge details

2014-01-16 Thread David Watzke
Hello, we've got a problem with the proxy_cache feature in nginx. To be more precise, the problem occurs when the cache loader kicks in and starts deleting the expired files that are stored on a LVM-striped (non-raid) ext4 partition across six huge SSD disks. The purge (sometimes?) takes ages

Re: Does it possible to submit duplicated request with the proxy_next_upstream on

2014-01-16 Thread itpp2012
renenglish Wrote: --- > Sorry I can’t get it . > > If host A has added the counter and failed to response, the request > would be failed over to host B with successful response, so the > counter would be added twines. Wouldn’t it ? Then a condit

Re: Does it possible to submit duplicated request with the proxy_next_upstream on

2014-01-16 Thread 任勇全
Sorry I can’t get it . If host A has added the counter and failed to response, the request would be failed over to host B with successful response, so the counter would be added twines. Wouldn’t it ? 在 2014年1月14日,下午5:48,itpp2012 写道: > Unless the request is getting que'd while there is a short

Re: Images Aren't Displaying When Perl Interpreter Is Enabled

2014-01-16 Thread Jonathan Matthews
At first, pre-coffee glance, I suspect people will be better placed to help you if you provide some examples (redacted if necessary) of URIs that work and URIs that don't work ... ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/li