If I'm not wrong the rewrite is applied only for the path, not for
querystring.
To parse the arguments using a regex use a map with $args as input or use
the $arg_ARGNAME to the rewrite.
On Jun 30, 2017 20:49, "Alexandre" wrote:
> Do you have solutions for my problem ?
>
>
Use ngx_queue_t
On Aug 23, 2016 09:41, "Raghavan, Gopal" wrote:
> I can store as ngx_rbtree_t.
> Any suggestion on how to store a struct with list of items, something like
> this in shared memory?
>
> typedef struct {
> ngx_rbtree_node_t node;
>
Check if your backend server is setting cache headers on errors like
Cache-Control / Expires.
Nginx by default uses these headers to know if the response should be
cached or not.
When these headers are not present it uses the configuration done with
proxy_cache_valid.
On Sun, Aug 7, 2016 at 9:43
on this environment.
Any tips would be appreciate.
Kind regards,
Wandenberg
___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
ill handle the request, the other
on will suffer a bypass on your module.
Take a look on ngx_http_gzip_filter_module.c as a very good example ;)
On Tue, Jun 21, 2016 at 11:06 AM, Justin Kennedy <jus...@justinkennedy.ca>
wrote:
> HI Wandenberg, Our module is a request filter. Do we have to do
It depends on the module. If it is configurable on main, server or location
blocks. But generally you can enable/disable at any of these 3 levels
On Jun 20, 2016 11:44, "Justin Kennedy" wrote:
> I'll try to simply the question: Can a module be enabled only for specific
>
You have to configure your nginx to use it like any other module.
For instance,
cd /Downloads/nginx
./configure --add-module=/Downloads/nginx-upstream-dynamic-servers-master
make
make install
On May 16, 2016 01:28, "RT.Nat" wrote:
> I cannot install the above module.
You can try to use this module to resolve the DNS ;)
https://github.com/GUI/nginx-upstream-dynamic-servers
On Wed, Mar 16, 2016 at 1:34 PM, Valentin V. Bartenev
wrote:
> On Friday 11 March 2016 07:01:49 Frank Liu wrote:
> > Hi Valentin,
> > Thanks for clearing up . I was
The location = / is a exactly match.
To execute a "catch all" returning a 404 you can do a
location / {
return 404;
}
On Feb 29, 2016 16:15, "Payam Chychi" wrote:
> Look at your proxy cache path... (proxy_cache_path /var/www/test_cache)
> Are you sure the path exists and
ember 2015 14:55:32 Wandenberg Peixoto wrote:
> > Hi,
> >
> > today I realized a possible problem on the ngx_atoi and ngx_atof
> functions
> > (may be on all ngx_ato* functions).
> >
> > There is no way to distinguish between an error and a valid "-1" stri
r something like
ngx_int_t
ngx_atoi(u_char *line, size_t n, ngx_int_t *result)
using the "result" parameter to store the parsed value and return NGX_OK or
NGX_ERROR.
Kind regards,
Wandenberg
___
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Make sense
On Thu, Oct 22, 2015 at 7:43 PM, Christos Chatzaras
wrote:
> I think I found a patch for this:
> https://github.com/jrkettle/nginx-http-auth-digest/commit/6846a2a94b5497ec999a826618552717b3853bb9
> ___
> nginx mailing
Take a look on *port_in_redirect
http://nginx.org/en/docs/http/ngx_http_core_module.html#port_in_redirect *and
*proxy_pass
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass*
configuration.
You probably have to do a proxy_pass to Apache and ensure that the port
number is removed
You also have to consider the rate your client get data from the server.
The request time is the entire time spent from the beginning of the request
until the end of response.
So you may not have a problem on your server, just a lazy client :)
On Mon, Mar 9, 2015 at 1:05 PM, B.R.
Hi,
I would like to know what is the right way to start a new process like the
cache manager to execute jobs non related with directly with user
requests.
Can you help me?
Regards,
Wandenberg
___
nginx-devel mailing list
nginx-devel@nginx.org
http
Hey Arun,
as docs says you do not need to compile this module anymore, or even try to
set chunkin on;
The nginx core will detect when your response does not have a
Content-Length set, and will enable the chunk mode automatically.
Just remove that line from your configuration and be happy :D
Try to remove the last 's'
This should work.
map $http_user_agent $katimeout {
default 300;
}
On Tue, Nov 18, 2014 at 2:25 AM, Robert Mueller r...@fastmail.fm wrote:
Hi
Thanks for your responses. Unfortunately, they don't seem to work.
and then use the evil IF:
if ($ios_ua) {
Try to set log_not_found
http://nginx.org/en/docs/http/ngx_http_core_module.html#log_not_found to
off
On Thu, Oct 30, 2014 at 11:56 AM, Igal @ getRailo.org i...@getrailo.org
wrote:
hi,
I am suppressing the access_log for images and other files in the /res/
directory:
location ^~ /res/
Did you execute a reload on nginx after remove the configuration file?
On Oct 12, 2014 4:14 AM, Francis Daly fran...@daoine.org wrote:
On Sat, Oct 11, 2014 at 06:23:28PM -0400, jbjares wrote:
Hi there,
I'm with a issue related a removed configuration file for a specific
hostname. So, I
Take a look on SRCache module http://wiki.nginx.org/HttpSRCacheModule if
it is suitable for you.
On Thu, Oct 2, 2014 at 9:24 AM, Bertrand Paquet bertrand.paq...@gmail.com
wrote:
Hi,
I need to have the same cache content on every frontend nodes. I'm seeking
a solution to do what the nginx
By default the $uri is appended to the proxy_pass directive.
Since you defined as
proxy_pass http://upstream*/*;
and the $uri starts with a slash you will have a double slash.
Try to set proxy_pass like
proxy_pass http://upstream;
On Fri, Sep 26, 2014 at 2:02 PM, Marcello Rocha
-ezest nginx-fo...@nginx.us wrote:
Hello wandenberg,
This procedure is not working for internet explorer. The CSS are not
loading
properly. so we have to somehow get the Content-Type in the header. Is
there
anything we can use?
--Manish
Posted at Nginx Forum:
http://forum.nginx.org
wandenberg,
Thank you for your response. I truly appreciate your help. I tried this
options given below
##First Method###
1. Edit nginx.conf and add
map $uri $custom_content_type {
default text/html;
~(.*\.json)$ application/json;
}
2. Put the custom map
Hi,
The key_zone is just the name of a shared memory area where some metadata
about the cache entries will be saved.
The files stored on the cache_path does not use the key_zone.
They are different configurations to two different purposes.
To do what you are imagining, the file stored on
Hello,
you can use many values on the map, take a look on its docs.
One quickly example may be (not tested)
map $uri $custom_content_type {
default text/html;
~(.*\.json)$ application/json;
}
location ~ \.json$ {
proxy_hide_header Content-Type;
add_header Content-Type
The configuration file used to start the server is the same been used to
stop it?
If you start as
nginx -c /some/confi/file.conf
and stop as
nginx -c /some/confi/file.conf -s stop
it should work.
If you are only doing
nginx -s stop
it will use default configuration that point to another pid file
using the reverse dns and, if the ip came from
Google,
I change it for the first ip on XFowardedFor header.
Doing that, the GeoIP module can be executed with the real ip instead of
the Google.
If you want to look how I did, the code is here
https://github.com/wandenberg/nginx-trusted-proxy
Thanks agentzh, Maxim and Igor
On Tue, Jun 3, 2014 at 11:00 AM, Maxim Dounin mdou...@mdounin.ru wrote:
Hello!
On Mon, Jun 02, 2014 at 08:42:50PM +0400, Maxim Dounin wrote:
Hello!
On Sat, May 31, 2014 at 11:46:28PM -0300, Wandenberg Peixoto wrote:
Hello Maxim,
I executed my
wrote:
Hello!
On Wed, Jan 22, 2014 at 01:39:54AM -0200, Wandenberg Peixoto wrote:
Hello Maxim,
did you have opportunity to take a look on this last patch?
It looks more or less correct, though I don't happy with the
checks done, and there are various style issues. I'm
larger than a
page
size are possible from the pool. While this isn't a problem for nginx
itself,
it is known to be bad for various 3rd party modules. Fix is to merge
adjacent
blocks of free pages in the ngx_slab_free_pages() function.
Prodded by Wandenberg Peixoto and Yichun Zhang.
diff
As far as I know, ngx_pool_t are created on process memory area,
so, after a reload the new process has a new memory area and do not have
access to the old.
You can recompile the regex on your module startup, at init worker hook.
On Wed, May 7, 2014 at 6:16 AM, MAGNIEN, Thierry
Hello Maxim,
did you have opportunity to take a look on this last patch?
Regards,
Wandenberg
On Thu, Dec 26, 2013 at 10:12 PM, Wandenberg Peixoto
wandenb...@gmail.comwrote:
Hello Maxim,
I changed the patch to check only the p-next pointer.
And checking if the page is in an address less
,
Wandenberg
On Fri, Dec 20, 2013 at 2:49 PM, Maxim Dounin mdou...@mdounin.ru wrote:
Hello!
On Tue, Dec 17, 2013 at 09:05:16PM -0200, Wandenberg Peixoto wrote:
Hi Maxim,
sorry for the long delay. I hope you remember my issue.
In attach is the new patch with the changes you suggest.
Can
I check to be sure the next and the
previous free pages can be accessed, without problems and I will make the
changes.
Regards,
Wandenberg
On Sun, Oct 6, 2013 at 6:37 AM, Maxim Dounin mdou...@mdounin.ru wrote:
Hello!
On Wed, Jul 31, 2013 at 12:28:02AM -0300, Wandenberg Peixoto wrote
Hi Maxim,
did you have opportunity to take a look on this patch?
Regards,
Wandenberg
On Wed, Jul 31, 2013 at 12:28 AM, Wandenberg Peixoto
wandenb...@gmail.comwrote:
Hello!
Thanks for your help. I hope that the patch be OK now.
I don't know if the function and variable names are on nginx
including yours, and than execute the final handler.
Regards,
Wandenberg
On Tue, Aug 13, 2013 at 9:04 PM, Myla John-B22173 b22...@freescale.comwrote:
Hi Wandenberg Peixoto,
** **
I appreciate your response.
** **
I have a simple follow-up question. I have looked at the function
;
+
+ngx_slab_merge_with_neighbour(pool, page);
}
On Tue, Jul 30, 2013 at 7:09 AM, Maxim Dounin mdou...@mdounin.ru wrote:
Hello!
On Mon, Jul 29, 2013 at 04:01:37PM -0300, Wandenberg Peixoto wrote:
[...]
What would be an alternative to not loop on pool-pages?
Free memory blocks are linked in pool
;
+neighbour-next = pool-free;
+continue;
+}
+
+page += ((page-prev NGX_SLAB_PAGE_MASK) == NGX_SLAB_PAGE) ?
page-slab : 1;
+}
}
Regards,
Wandenberg
On Mon, Jul 1, 2013 at 8:36 AM, Maxim Dounin mdou...@mdounin.ru wrote:
Hello!
On Fri, Jun 28, 2013 at 10:36:39PM
?
Can anyone help me explaining how shared memory works?
I have another module which do an intensive shared memory usage, and
understanding this can help me improve it solving some no memory messages.
I put the code in attach.
Thanks,
Wandenberg
nginx-shm-fragmentation-module.tar.gz
Description
39 matches
Mail list logo