Re: Cannot get secure link with expires to work

2019-05-06 Thread Duke Dougal
Well you hit the mark thank you well done. The problem was that I needed to wrap the entire curl url in quotes. ugh. On Tue, May 7, 2019 at 1:17 AM Francis Daly wrote: > On Wed, May 01, 2019 at 09:14:11AM +1000, Duke Dougal wrote: > > Hi there, > > > Hello I've tried every possible way I can

Re: Disabling proxy_buffering not working

2019-05-06 Thread Yuhao Zhang
Hi, Thank you for the explanation. I definitely need to learn more about the protocol spec. Would you help me understand why the "proxy_buffer_size" affects the result even when "proxy_buffering" is off? Also, in my network topology, there are no other layer 7 hops. nginx is the only thing talk

Re: Disabling proxy_buffering not working

2019-05-06 Thread Maxim Dounin
Hello! On Mon, May 06, 2019 at 07:08:44PM +, Yuhao Zhang wrote: > I am facing this issue where proxied server's response is > buffered before sending back to the request client, even when > proxy_buffering is disabled. > > I also tried setting "X-Accel-Buffering: no" header on the > respo

Disabling proxy_buffering not working

2019-05-06 Thread Yuhao Zhang
Hi All, I am facing this issue where proxied server's response is buffered before sending back to the request client, even when proxy_buffering is disabled. I also tried setting "X-Accel-Buffering: no" header on the response, but it didn't work. I posted the issue on ingress-nginx github repo,

Re: Valgrind reporting issue in connection->addr_text

2019-05-06 Thread Robert Paprocki
Hi, addr_text is of type 'ngx_str_t': http://lxr.nginx.org/source/src/core/ngx_connection.h#0148, which provides both the char pointer and the length. It's not correct to cast that value to a char pointer directly. On Mon, May 6, 2019 at 11:09 AM bhagavathula wrote: > Hi, > > When running Valgr

Valgrind reporting issue in connection->addr_text

2019-05-06 Thread bhagavathula
Hi, When running Valgrind on our NGINX module for errors, found the following errors: ==49784== Conditional jump or move depends on uninitialised value(s) ==49784==at 0x4C32D08: strlen (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==49784==by 0x6C3A328: apr_pstrdup (in /usr/lib/

Re: More than one host

2019-05-06 Thread Francis Daly
On Sun, May 05, 2019 at 03:28:11PM -0500, Julian Brown wrote: Hi there, > The second domain is for a bugzilla host, bugzilla.conf: > > server { > location / { > proxy_set_header X-Real-IP $remote_addr; > proxy_set_header X-Forwarded-For $remote_addr; > proxy_set_hea

Re: Capture clear text with Nginx reverse proxy

2019-05-06 Thread Francis Daly
On Sat, May 04, 2019 at 07:50:41PM +, Mik J via nginx wrote: Hi there, > I often try to solve problems between Nginx and the server communicating in > https > client <= https => Nginx <= https => server > Is there a way to see in clear text what is exchanged between the Nginx > reverse pro

Re: Cannot get secure link with expires to work

2019-05-06 Thread Francis Daly
On Wed, May 01, 2019 at 09:14:11AM +1000, Duke Dougal wrote: Hi there, > Hello I've tried every possible way I can think of to make secure links > work with expires. When I use your config on my test machine, it works for me. So it looks like what you have is fundamentally correct; there is obv

Re: redirect to another domain based on IP address

2019-05-06 Thread Patrick
On 2019-05-06 16:47, ender ulusoy wrote: > Main office ip 200.100.50.10 > > And it's shared office. I can not setup any dns services there. All > the developers come from this ip. map $remote_addr $is_web_dev { 200.100.50.10 1; default 0; } server { server_name www.aaa.

Re: redirect to another domain based on IP address

2019-05-06 Thread ender ulusoy
Main office ip 200.100.50.10 And it's shared office. I can not setup any dns services there. All the developers come from this ip. On Mon, May 6, 2019, 4:45 PM Patrick <201904-ng...@jslf.app> wrote: > On 2019-05-06 16:18, ender ulusoy wrote: > > @Patrick Thanks, here is the config I have (short

Re: redirect to another domain based on IP address

2019-05-06 Thread Patrick
On 2019-05-06 16:18, ender ulusoy wrote: > @Patrick Thanks, here is the config I have (short version) Ok, now you need to know the IPs that the main office uses for outbound HTTP requests. However, it seems unlikely that *everyone* at the main office wants to be on staging. You're probably better

Re: redirect to another domain based on IP address

2019-05-06 Thread ender ulusoy
@Patrick Thanks, here is the config I have (short version) upstream aaa { 192.168.1.1:80; 192.168.1.2:80; } upstream stage { 192.168.1.3:80; 192.168.1.4:80; } server { server_name www.aaa.com; location / { add_header X-Content-Type-Options nosniff; add_header X-XS

RE: More than one host

2019-05-06 Thread Reinis Rozitis
> 1 192.168.1.249 - - [05/May/2019:14:43:28 -0500] "GET /bugzilla/ HTTP/1.0" > 200 4250 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 > (KHT > 2 Execution Time 8579 > > the dash after 200 4250 is the 'host" I believe it is seeing or defaulting to > "-" and not http://bug

Re: More than one host

2019-05-06 Thread Anoop Alias
Try proxy_set_header Host $host; On Mon, May 6, 2019 at 5:15 PM Julian Brown wrote: > I am having a problem and not sure which side of the ocean it is on (Nginx > or Apache). > > I am internally setting up an Nginx reverse proxy that will eventually go > public. > > I have two domains I wan

RE: redirect to another domain based on IP address

2019-05-06 Thread Reinis Rozitis
> We have a website under heavily development. So we divide the site to 3 > branches stage, demo and main. What our developers want from me is : "every > request from office ip address to main domain must redirect to stage." If there is a single IP you can use the if directive (http://nginx.o

Re: redirect to another domain based on IP address

2019-05-06 Thread Patrick
On 2019-05-06 12:10, ender ulusoy wrote: > We have a website under heavily development. So we divide the site to > 3 branches stage, demo and main. What our developers want from me is : > "every request from office ip address to main domain must redirect to > stage." We need more information about

redirect to another domain based on IP address

2019-05-06 Thread ender ulusoy
Hi Folks, We have a website under heavily development. So we divide the site to 3 branches stage, demo and main. What our developers want from me is : "every request from office ip address to main domain must redirect to stage." For an example if a developer makes a request to www.aaa.com then si