Re: unable to setup HTTPS reverse proxy

2017-10-04 Thread k78rc
Oh, now that you tell me it looks quite obvious. Thank you very much for your help! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276690,276699#msg-276699 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ngin

Re: Nginx splitting one single request's into multiple requests to upstream. (version 1.13.3)

2017-10-04 Thread Peter Booth
I can say that Maxim's idea of using tcp proxying with the streams module Is very simple to configure - just a couple of lines, and tremendously useful. Sent from my iPhone > On Oct 4, 2017, at 3:24 PM, pan...@releasemanager.in > wrote: > > Maxim, > > totally agree on your statement and op

Re: Nginx splitting one single request's into multiple requests to upstream. (version 1.13.3)

2017-10-04 Thread pan...@releasemanager.in
Maxim, totally agree on your statement and options. But still i was wondering if there's any configuration directive that limit's the buffer of rechunked packet until the app is updated to handle it in a more graceful manner. thanks, P Posted at Nginx Forum: https://forum.nginx.org/read.php?2

Re: unable to setup HTTPS reverse proxy

2017-10-04 Thread Maxim Dounin
Hello! On Wed, Oct 04, 2017 at 12:36:46PM -0400, k78rc wrote: > Hi, > > I am struggling in order to setup nginx as reverse proxy with HTTPS. > In current test setup I installed nginx on a CentOS 7 machine (host > 192.168.1.115) and apache within a docker container. > Everything works fine as lo

unable to setup HTTPS reverse proxy

2017-10-04 Thread k78rc
Hi, I am struggling in order to setup nginx as reverse proxy with HTTPS. In current test setup I installed nginx on a CentOS 7 machine (host 192.168.1.115) and apache within a docker container. Everything works fine as long as I use HTTP only. However if I enable SSL, my browser always ends up in

Re: Nginx splitting one single request's into multiple requests to upstream. (version 1.13.3)

2017-10-04 Thread Maxim Dounin
Hello! On Wed, Oct 04, 2017 at 11:29:23AM -0400, pan...@releasemanager.in wrote: > Pbooth, > > Basically, i am receiving a complete json doc as a chunk from one app server > which is then proxied to another app which is handing each chunk as a > complete request. The problem is when you put ngin

Re: Reverse cache not working on start pages

2017-10-04 Thread Peter Booth
I found it useful to define a dropCache location that will delete the cache on request. I did this with a shell script that I invoked with lua (via openresty) but I imagine there are multiple ways to do this. Sent from my iPhone > On Oct 4, 2017, at 11:39 AM, Maxim Dounin wrote: > > Hello! >

Re: How to grab a value from a request

2017-10-04 Thread Reinis Rozitis
Would this work? location ~ ^/users/v2/ { proxy_pass http://app.domain.com/api/$1/v2; } No. Would $1 resolve as users or does it need to be inside ()? For capturing (PCRE) a block into variable you need (). You can also use named variables if the pattern/configuration becomes more complex

Re: Reverse cache not working on start pages

2017-10-04 Thread Maxim Dounin
Hello! On Wed, Oct 04, 2017 at 06:01:35AM -0400, Dingo wrote: > Another update: > > I finally deleted /data/nginx/cache/*, and now everything seems to be > working. It looks like Nginx don't bother about what cache timeout I use. If > it is 1 day, as in the example from nginx.org, everything tha

Re: Nginx splitting one single request's into multiple requests to upstream. (version 1.13.3)

2017-10-04 Thread pan...@releasemanager.in
Pbooth, Basically, i am receiving a complete json doc as a chunk from one app server which is then proxied to another app which is handing each chunk as a complete request. The problem is when you put nginx in between the document is sometime divided in multiple chunks or multiple chunks are merge

Re: Support Request for Preserving Proxied server original Chunk sizes

2017-10-04 Thread pan...@releasemanager.in
Were you able to work around this issue of rechunking based on network performance and bandwidth ? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276367,276682#msg-276682 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailma

Re: nginx null bytes on static image

2017-10-04 Thread Maxim Dounin
Hello! On Wed, Oct 04, 2017 at 08:01:48AM -0400, soulseekah wrote: > nginx/1.12.1 > > Creating new files with PHP (image resizing) works fine, the new files are > served well. Then suddenly after a couple of days the file is returned as a > sequence of NULL bytes Content-Length long. > > HTTP/1

Re: HTTP Status Code 463

2017-10-04 Thread Maxim Dounin
Hello! On Wed, Oct 04, 2017 at 02:39:35AM -0400, akmanocha wrote: > Hi, > > I am getting a strange error while using nginx as reverse proxy. > > From my upstream I get a response like in acess logs - > > {"time": "2017-10-04T11:51:37+05:30", "remote_addr": "52.76.220.40", > "remote_user": "-"

Re: How to set up nginx as a 2-factor authentication portal that becomes transparent once auth'd?

2017-10-04 Thread manas86
Hi Did you find any solution ? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,238332,276678#msg-276678 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

nginx null bytes on static image

2017-10-04 Thread soulseekah
nginx/1.12.1 Creating new files with PHP (image resizing) works fine, the new files are served well. Then suddenly after a couple of days the file is returned as a sequence of NULL bytes Content-Length long. HTTP/1.1 200 OK Server: nginx/1.12.1 Date: Wed, 04 Oct 2017 11:33:57 GMT Content-Type: im

Re: Reverse cache not working on start pages

2017-10-04 Thread Dingo
Another update: I finally deleted /data/nginx/cache/*, and now everything seems to be working. It looks like Nginx don't bother about what cache timeout I use. If it is 1 day, as in the example from nginx.org, everything that was cached at that time will be remembered for 1 day. I have no clue why

Re: Reverse cache not working on start pages

2017-10-04 Thread Dingo
A small update to my problem: I started Wireshark and saw that there was no any requests going to my server as long as I used the cache. The problem seems to be in the cached content. I changed: proxy_cache_valid 200 1d; to proxy_cache_valid 200 1m; But I don't seem to get any updates to the cac

Reverse cache not working on start pages

2017-10-04 Thread Dingo
Hi! I am unable to get reverse cache working on startpages. I am using Ubuntu 16.04 with everything updated. I have tried this example: https://www.nginx.com/resources/wiki/start/topics/examples/reverseproxycachingexample/ http { proxy_cache_path /data/nginx/cache levels=1:2keys_zone=S

Re: How to grab a value from a request

2017-10-04 Thread Francis Daly
On Tue, Oct 03, 2017 at 11:29:44AM -0400, halfpastjohn wrote: Hi there, > I'm sorry i don't quite follow. How is your example using the map directive? It isn't. If you want to pick pieces from the request, you can use "map". However, what you have described so far as your use case does not nee