mail proxy auth

2014-06-20 Thread Felipe Buccioni
I have wrote a perl module for nginx to authenticate IMAP/POP proxy against another IMAP server and I like your feedback because I wrote a little quick-and-dirty, and with your help this could be useful for many people the community. The module also have cool stuff like per-domain servers, ssl, DBI

Re: No CORS Workaround - SSL Proxy

2014-06-20 Thread Eric Swenson
Hello Maxim, On 6/20/14, 3:46 PM, "Maxim Dounin" wrote: >Hello! > >On Fri, Jun 20, 2014 at 07:32:36PM +, Eric Swenson wrote: > >[...] > >> This works fine. However, every once in a while (say, every >> week or so), traffic to https://app.example.com/svc/api/ >> returns gateway 502 error

Re: No CORS Workaround - SSL Proxy

2014-06-20 Thread Maxim Dounin
Hello! On Fri, Jun 20, 2014 at 07:32:36PM +, Eric Swenson wrote: [...] > This works fine. However, every once in a while (say, every > week or so), traffic to https://app.example.com/svc/api/ > returns gateway 502 errors. The API service (located at > https://svc.example.com/api) is

No CORS Workaround - SSL Proxy

2014-06-20 Thread Eric Swenson
We run a API web service and have two web sites that access the web service via AJAX. The web sites are accessed via HTTPS and, for security reasons, we need to have the API web service also accessed by HTTPS. Due to the need to support the IE9 browser, which does not properly support CORS, we

Re: Download full mp4 file with proxy_cache or proxy_store !!

2014-06-20 Thread shahzaib shahzaib
@Lukas, we're using nginx-1.6 and byte range caching is already enabled by default(i guess). Below is the curl request :- curl -H Range:bytes=16- -I http://videos.files.com/files/videos/2014/06/20/14032606291de19-360.mp4 HTTP/1.1 206 Partial Content Server: nginx Date: Fri, 20 Jun 2014 13:36:05 G

Re: ssl proxys https web server is very slow

2014-06-20 Thread Maxim Dounin
Hello! On Fri, Jun 20, 2014 at 10:14:54AM -0700, Mark Moseley wrote: > On Fri, Jun 20, 2014 at 5:20 AM, Maxim Dounin wrote: > > > Hello! > > > > On Fri, Jun 20, 2014 at 10:51:38AM +0200, Yifeng Wang wrote: > > > > > Hi, It's my first time using NGINX to proxy other web servers. I set a > > > va

Re: strange map $request issue

2014-06-20 Thread itpp2012
It was a malformed request so a 400 is correct, a valid HEAD in this case does return a 412. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251074,251080#msg-251080 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listi

Re: ssl proxys https web server is very slow

2014-06-20 Thread Mark Moseley
On Fri, Jun 20, 2014 at 5:20 AM, Maxim Dounin wrote: > Hello! > > On Fri, Jun 20, 2014 at 10:51:38AM +0200, Yifeng Wang wrote: > > > Hi, It's my first time using NGINX to proxy other web servers. I set a > > variable in location, this variable may be gotten in cookie or args. if > > I use it dire

Re: strange map $request issue

2014-06-20 Thread Maxim Dounin
Hello! On Fri, Jun 20, 2014 at 09:35:20AM -0400, itpp2012 wrote: > The log entries are both in access.log, nothing in error.log, maybe a > try_files thing ? though the IF is after try_files and works for a GET. Note that you have to configure error_log to log "info" level messages. By default,

Re: using 2000+ ip prefixes in nginx geo module !!

2014-06-20 Thread Maxim Dounin
Hello! On Thu, Jun 19, 2014 at 09:12:04PM +0100, Steve Wilson wrote: > These 2 overlap > > 110.93.192.0/24 TW; > 110.93.192.0/18 TW; > > The /24 is within the /18. In this instance you want to remove the /24. > > It might be worth investigating

Re: strange map $request issue

2014-06-20 Thread itpp2012
The log entries are both in access.log, nothing in error.log, maybe a try_files thing ? though the IF is after try_files and works for a GET. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251074,251076#msg-251076 ___ nginx mailing list nginx

Re: strange map $request issue

2014-06-20 Thread Maxim Dounin
Hello! On Fri, Jun 20, 2014 at 09:05:44AM -0400, itpp2012 wrote: > For example: > > map $request $testvar { > default 0; > ~*montytest 1; > } > > if ($testvar) { return 412; } > > [20/Jun/2014:xx:xx:20 +0200] 69.64.:

strange map $request issue

2014-06-20 Thread itpp2012
For example: map $request $testvar { default 0; ~*montytest 1; } if ($testvar) { return 412; } [20/Jun/2014:xx:xx:20 +0200] 69.64.:52393 - - "GET /montytest/ HTTP/1.1" 412 712 "-" "Mozilla/5.0 [20/Jun/2014:xx:

Re: ssl proxys https web server is very slow

2014-06-20 Thread Maxim Dounin
Hello! On Fri, Jun 20, 2014 at 10:51:38AM +0200, Yifeng Wang wrote: > Hi, It's my first time using NGINX to proxy other web servers. I set a > variable in location, this variable may be gotten in cookie or args. if > I use it directly likes "proxy_pass https://$nodeIp2;";, it will get the > respo

Re: Sticky equivalent

2014-06-20 Thread Aleksandar Lazic
Dear B. R. Am 20-06-2014 07:10, schrieb B.R.: On Thu, Jun 19, 2014 at 9:46 AM, Aleksandar Lazic wrote: Am 18-06-2014 20:46, schrieb Stefanita Rares Dumitrescu: Oh god 1350$ Per year. It's cheap compared to some other commercial Servers, from my point of view. ​ ... and it is expens

ssl proxys https web server is very slow

2014-06-20 Thread Yifeng Wang
Hi, It's my first time using NGINX to proxy other web servers. I set a variable in location, this variable may be gotten in cookie or args. if I use it directly likes "proxy_pass https://$nodeIp2;";, it will get the response for a long time. but if I hardcode likes "proxy_pass https://147.128.22.15