Hi, On 28/12/2010 07:12, David J. wrote: > I have an app that uses relative URLs > > ie: /media/assets/css/style.css This is not a relative URL, it's an absolute URL from the base of the current host. You need to either use media/assets/css/style.css or /app/media/assets/css/style.css Marcus. _______________________________________________ nginx mailing list nginx@nginx.org http:/by Eugaia - Nginx Mailing List - English
Hi, On 25/12/2010 03:29, Piotr Sikora wrote: >> So i've added the following: >> proxy_cache_key "$scheme$host$request_uri"; > > Try using "$scheme$host$uri$is_args$args" ;) Probably putting '://' or something else that won't be the first character of a URL (e.g. '#') between $scheme and $host is a good idea, just in case you have two hosts that only differby Eugaia - Nginx Mailing List - English
On 23/12/2010 10:58, Eugaia wrote: > Hi, > > On 23/12/2010 04:50, Sirsiwal, Umesh wrote: >> I just tried using error_pages and have my post_subrequest return the >> error code as Maxim had suggested. >> >> That works very well. The only oddity is that I get two >> post_subrequest callback for a single subrequest. That is something I >> can handle myby Eugaia - Nginx Development
Hi, On 23/12/2010 04:50, Sirsiwal, Umesh wrote: > I just tried using error_pages and have my post_subrequest return the error code as Maxim had suggested. > > That works very well. The only oddity is that I get two post_subrequest callback for a single subrequest. That is something I can handle my module. Good. In your post_subrequest function, assuming you only want it called once, yoby Eugaia - Nginx Development
Hi, On 23/12/2010 04:25, Sirsiwal, Umesh wrote: > 0/12/22 20:48:52 1637#0: *3 try to use file: "@sub2" "/Users/umesh/nginx/install/html@sub2" > At least according to this e-mail http://forum.nginx.org/read.php?2,28297 chain, it seems I cannot use named locations in try_files directory except as the last location. Yes. Sorry - forgot. How about returning different statby Eugaia - Nginx Development
Hi, On 23/12/2010 03:51, Sirsiwal, Umesh wrote: > I tried replacing /sub1 and /sub2 with named location and I get: > 2010/12/22 20:48:52 1637#0: *3 try to use file: "@sub1" "/Users/umesh/nginx/install/html@sub1" > 2010/12/22 20:48:52 1637#0: *3 try to use file: "@sub2" "/Users/umesh/nginx/install/html@sub2" > This was followed by testing @s whby Eugaia - Nginx Development
Hi, On 23/12/2010 03:51, Sirsiwal, Umesh wrote: > Thanks Marcus. > I really like echo module. My module's subrequest handling is modeled after the excellent echo module. We have significant custom logic to deal with our specific needs. > > I did not realize try_files can use with proxy locations. I did see the internal redirect in the configuration example used proxy. But, I did not rby Eugaia - Nginx Development
Hi, On 22/12/2010 21:26, Sirsiwal, Umesh wrote: > > All, > > I am trying to write a module which uses a number of subrequests to > talk to backend servers. Combines the responses and sends them back to > the client. The communication with the backend server is using HTTP > and I am using proxy_pass for that. > > The peculiarity in our setup is that on failure-retry Iby Eugaia - Nginx Development
Hi, On 21/12/2010 23:37, Simon Leins wrote: > For the OS signature we are able to change it on the fly with a > security/network appliance and make it looks unknown, but we now need > to fake the web server signature. Rather than adding a proxy such as > varnish in front, I am looking for the way to directly patch the > source code to change the server signature. > > Coulby Eugaia - Nginx Mailing List - English
Hi, On 21/12/2010 16:31, David J. wrote: > How can I strip some requests from cookie headers? I think you should be able to do it with the third-party headers-more module : https://github.com/agentzh/headers-more-nginx-module Marcus _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby Eugaia - Nginx Mailing List - English
Hi, On 21/12/2010 01:24, Akins, Brian wrote: > On 12/20/10 5:56 PM, "Eugaia"<ngx.eugaia@gmail.com> wrote: > >> Each worker process will see virtual data usage of 50MB for the data, >> but unless I'm mistaken, the overall system usage should still only be >> 50MB because the data is shared in the same physical memory by the OS >> until such a time thaby Eugaia - Nginx Development
Hi, On 21/12/2010 00:45, Akins, Brian wrote: > On 12/20/10 1:41 PM, "Igor Sysoev"<igor@sysoev.ru> wrote: > >> Thank you for the patch. >> How large bases do you use ? As far as I remember MaxMind bases are too >> big, at least no more than 50M. I think this is not big issue to keep >> it entirely in memory. > No, it's not a big issue. But we do rby Eugaia - Nginx Development
Hi, On 15/12/2010 13:50, Igor Sysoev wrote: > Yes, mention of "cookie" is useful here, since this is the main cause > of these errors. "Header line or cookie too big". I use "line" > because nginx has another couse of 400 error: large header. > "Header line is too long" is logged when a single line of client header > is bigger than a buffer iby Eugaia - Nginx Mailing List - English
On 15/12/2010 13:35, Igor Sysoev wrote: > On Wed, Dec 15, 2010 at 01:21:19PM +0200, Eugaia wrote: > >> Hi, >> >> Nice patch. I don't know if 'Header line too long' might be better than >> 'Too long header line'. Both make sense, but the former sounds a bit >> better to me. >> >> Just an idea. > May be "Header line is too long" ? I thinby Eugaia - Nginx Mailing List - English
Hi, Nice patch. I don't know if 'Header line too long' might be better than 'Too long header line'. Both make sense, but the former sounds a bit better to me. Just an idea. Cheers, Marcus. _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby Eugaia - Nginx Mailing List - English
_______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby Eugaia - Nginx Mailing List - English
Hi, On 12/12/2010 06:45, Wu Bingzheng wrote: > hi all, > There are 2 modes of upstream, buffering and non-buffering. And there > are some difference between them: > 1. non-buffering mode doesn't support limit-rate. > 2. a request in non-buffering mode decides the end of upstream by a) > close of upstream; b) comparing the length of recived data and > headers_out.content_leby Eugaia - Nginx Mailing List - English
Hi, On 07/12/2010 01:25, Rasmus Lerdorf wrote: > I'm probably being a bit lazy here, I have only skimmed the code, but is > there a way to bounce all original request headers through a proxy_pass > prefixed with X-Orig-* or something like that? > > One reason for wanting to do this is for proxy detection. Common > headers that are important to preserve are HTTP_X_FORWARDED, HTTby Eugaia - Nginx Mailing List - English
Hi, On 04/12/2010 13:18, agentzh wrote: > With the ngx_lua [1] module enabled, it's trivial: > > set_by_lua $realm ' > if string.match(ngx.var.http_via, ".somehost.net") then > return "off" > else > return "enter your password" > end'; > > auth_basic $realm; > auth_basic_user_file /etc/nginx/by Eugaia - Nginx Mailing List - English
On 03/12/2010 23:00, Eugaia wrote: > Hi, > > On 03/12/2010 22:49, Michael Shadle wrote: >> Got this idea off IRC, but it looks like variables don't expand: >> >> set $realm "enter your password"; >> >> if ($http_via ~* ".somehost.net") { >> set $realm off; >> } >> >> auth_basic $realm; >> auth_basic_uby Eugaia - Nginx Mailing List - English
Hi, On 03/12/2010 22:49, Michael Shadle wrote: > Got this idea off IRC, but it looks like variables don't expand: > > set $realm "enter your password"; > > if ($http_via ~* ".somehost.net") { > set $realm off; > } > > auth_basic $realm; > auth_basic_user_file /etc/nginx/confs/htpasswd.test; > > Any ideas on how to do conditional autby Eugaia - Nginx Mailing List - English
Hi, I've not used the chunkin module personally. Having just had a quick look at the description, it appears that you are right that it's only for inputs. Perhaps check out Apache Traffic Server / HAProxy? Not sure if either of them support chunked responses or not, but I expect that one of them does. Cheers, Marcus. On 23/11/2010 00:07, John Axel Eriksson wrote: > Thanks, I alreadyby Eugaia - Nginx Mailing List - English
Hi, Check out the chunkin module for Nginx : https://github.com/agentzh/chunkin-nginx-module This should probably suit your needs. Marcus. On 22/11/2010 23:44, John Axel Eriksson wrote: > Thanks so much for replying! I'm very very saddened though since I love nginx so much but > now must part ways. Is there any sort of plan to support this in the future? I guess it might mean > you mby Eugaia - Nginx Mailing List - English
Hi, On 05/11/2010 11:51, Weibin Yao wrote: > I think it's good to divide the determination from the Nginx. It's > hard to determine the IP by single Nginx whether is good or bad. > Actually we have 20+ reverse proxy Nginx servers in the front. Each > Nginx doesn't known others status. In our DDOS attack, the bad-IP's > request rate is a little higher than the normal request. Iby Eugaia - Nginx Mailing List - English
Hi, On 16/10/2010 10:03, Manlio Perillo wrote: > >> I think you should be able to use the ngx_http_echo_module to achieve >> this. Just use an echo_subrequest directive to send a request to the >> URL that you want. This request will only be made once the upload has >> completed. Any other module that calls a subrequest after the files >> have been uploaded shoby Eugaia - Nginx Mailing List - English
Hi Peter, Thanks. What Yichun is referring to there is how echo issues subrequests, however I was just testing with the basic 'echo' commands. The thing is that no special handling of data is made when it is 'in memory'. This appears to be a *feature* of Nginx - the in-memory handling needs to be done by specific modules, and currently the only one that seems to do this properly is the upby Eugaia - Nginx Development
Hi again, I've found the output that the module I'm trying to get this to work with (ngx_http_echo_module) sent the content directly to the parent request. I'm not sure if this is as a result of a generic feature, or something that should be fixed in echo - which I'll look into. Cheers, Marcus. On 15/10/2010 20:59, Eugaia wrote: > Hi, > > I'm trying to get the output of an in-memby Eugaia - Nginx Development
Hi, On 15/10/2010 21:54, Manlio Perillo wrote: >> How could I configure nginx so that when a download is started and when >> it completes, it makes a HTTP GET request to another web server? > This is not possible. > You need to write a custom Nginx module. I think you should be able to use the ngx_http_echo_module to achieve this. Just use an echo_subrequest directive to seby Eugaia - Nginx Mailing List - English
Hi, I'm trying to get the output of an in-memory subrequest, but I can't find where the output is stored. Basically, I'm doing : .... ngx_uint_t flags; ngx_http_post_subrequest_t *psr; ngx_str_t location; ngx_str_t *url_args; psr->handler = my_callback; flags |= NGX_HTTP_SUBREQUEST_IN_MEMORY; ngx_http_subrequest (r, &location, url_args, &sr, psr, flags); .... // waiting for for sby Eugaia - Nginx Development
Hi, Is there a reason why the following lines in ngx_rewrite_set() : if (v->get_handler == NULL && ngx_strncasecmp(value[1].data, (u_char *) "http_", 5) != 0 && ngx_strncasecmp(value[1].data, (u_char *) "sent_http_", 10) != 0 && ngx_strncasecmp(value[1].data, (u_char *) "upstream_http_", 14) != 0) { v->get_handler = nby Eugaia - Nginx Development