On 18/10/19 1:33 pm, Patrick wrote:
Awesome. By `safe' do you mean netsec, or memory-safe, or ?
Like netsec and using "if" in the config.
I suppose for my case, I have to use "if".
Thank you very much for helping to solve this. I was cracking my head on
how to solve this. You really helped.
On 2019-10-18 13:17, P.V.Anthony wrote:
> Tried the following and it works but is it safe?
>
> if ( $request_uri = "/test/place?id=2" ) {
> rewrite ^ http://new.example.com${uri}?${args}? last;
> }
Awesome. By `safe' do you mean netsec, or memory-safe, or ?
Patrick
___
On 18/10/19 12:20 pm, Patrick wrote:
Without a map, try starting with:
if ( $uri?$args = /test/place?id=2 ) {
rewrite ^ http://new.example.com/${uri}?${args}? last;
}
Then as the site migration continues turn that `if' test into a regexp
that will match the migrated components.
I can ge
On 2019-10-18 12:12, P.V.Anthony wrote:
> I am using ispconfig web control that only allows changes in the server
> block.
Without a map, try starting with:
if ( $uri?$args = /test/place?id=2 ) {
rewrite ^ http://new.example.com/${uri}?${args}? last;
}
Then as the site migration continues tu
On 18/10/19 9:03 am, Patrick wrote:
This looks like a gradual migration of content to a new server. Try
using `rewrite' instead of `return'?
map "$uri?$args" $is_new_site {
/test/place?id=2 1;
default 0;
}
server {
...
if ( $is_new_site ) {
rewrite
On 18/10/19 5:26 am, Jeff Dyke wrote:
I know this is not an answer to your question, but it begs another,
mainly due to the if statement. How many of these are you going to
have? https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/
You've likely considered this, but if not wanted
On 18/10/19 5:15 am, J. Lewis Muir wrote:
You might want to use $arg_id here (i.e., the $arg_ variable for
the argument). Otherwise, it won't work if any other arguments
are given.
Noted. I will change that.
Or is there a way to do the following? That would be ideal.
location = /test/plac
Hello, nginxers!
What's the best way to server static content as well as dynamic content
that uses the Front Controller pattern under the same base URI?
I'm dealing with a web app partially written in PHP that expects to
serve static content as well as dynamic PHP content, using the Front
Control
On 2019-10-18 01:01, P.V.Anthony wrote:
> Currently have the following url,
>
> https://old.example.com/test/place?id=1
> https://old.example.com/test/place?id=2
> https://old.example.com/test/place?id=3
>
> Need to redirect only id=2 to another url.
This looks like a gradual migration of content
I'm trying to use the ngx_http_catch_body_filter example to capture request
bodies from post (etc.) requests.
I started with the example here in the hg repo:
https://www.nginx.com/resources/wiki/extending/examples/body_filter/
I changed the config to make it a dynamic nginx module.
I can see
I know this is not an answer to your question, but it begs another, mainly
due to the if statement. How many of these are you going to have?
https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/
You've likely considered this, but if not wanted to throw it out there.
Even if you are mo
On 10/18, P.V.Anthony wrote:
> Currently have the following url,
>
> https://old.example.com/test/place?id=1
> https://old.example.com/test/place?id=2
> https://old.example.com/test/place?id=3
>
> Need to redirect only id=2 to another url.
>
> Did the following and it works for id=2. Need id=1 a
I don't know if this is a bug or not but... yes you were right...
All the work should be done in the ngx_http_read_client_request_body
handler, as it does duplicate the r connection to another address
What confused me is the fact that this is only done in http2 connections...
I really don't know
Hello!
> On 17 Oct 2019, at 20:49, J.R. wrote:
>
> Wasn't sure how to contact the webmaster as there is only a sales
> contact form on the nginx website Would it kill them to have a
> basic feedback form or email address?
>
> I believe there's a typo on the following page:
>
> https://doc
Wasn't sure how to contact the webmaster as there is only a sales
contact form on the nginx website Would it kill them to have a
basic feedback form or email address?
I believe there's a typo on the following page:
https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-
Hi,
Currently have the following url,
https://old.example.com/test/place?id=1
https://old.example.com/test/place?id=2
https://old.example.com/test/place?id=3
Need to redirect only id=2 to another url.
Did the following and it works for id=2. Need id=1 and id=3 to continue
normally without cha
On 10/17, tiendungitd wrote:
> any idea about this issue?
Are you serving over HTTPS?
Are you positive that you are *not* serving any content over HTTP from
HTTPS?
Can you create an MCVE (minimal, complete, and verifiable example) for a
".txt" file over HTTP? For a ".txt" file over HTTPS? For
Hello!
On Thu, Oct 17, 2019 at 08:35:58AM -0400, sachin.she...@gmail.com wrote:
> Thankyou, we use proxy_cache_lock as well, but in certain weird burst
> scenarios, it still ends up filling the disk.
There are two timeouts for proxy_cache_lock to tune,
proxy_cache_lock_age and proxy_cache_lock_
Thankyou, we use proxy_cache_lock as well, but in certain weird burst
scenarios, it still ends up filling the disk.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,285896,285910#msg-285910
___
nginx mailing list
nginx@nginx.org
http://mailman
Njs js_content can only call js function for now.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,285909,285909#msg-285909
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Hi everyone,
any idea about this issue?
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,285874,285908#msg-285908
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
21 matches
Mail list logo