Re: Proxy_store downloading half videos !!

2014-09-18 Thread shahzaib shahzaib
403 forbidden error was due to hotlinking protection on the origin server. It was fixed. On Fri, Sep 19, 2014 at 5:29 AM, Eliezer Croitoru wrote: > I have seen your directives and I am not nginx expert but there was > something like "try" for connections to a proxy server that will first try > o

Re: Redirect to a different url based on a query.

2014-09-18 Thread geopcgeo
Can anyone please help me on it Posted at Nginx Forum: http://forum.nginx.org/read.php?2,253390,253405#msg-253405 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Proxy_cache_methods and OPTIONS

2014-09-18 Thread idabic
I have bounced around quite a lot through forums and documentation to demistique whether the OPTIONS request method is honoured/allowed by nginx when it's configured as reverse proxy cache system or not. I used a test box with nginx 1.4.6 with "proxy_cache_methods GET OPTIONS;" to test certain

Re: Proxy_store downloading half videos !!

2014-09-18 Thread Eliezer Croitoru
I have seen your directives and I am not nginx expert but there was something like "try" for connections to a proxy server that will first try one direction and if not able to download from there use the other one. Take a peak here: http://forum.nginx.org/read.php?2,246125,246125 You can defin

Re: Proxy_store downloading half videos !!

2014-09-18 Thread shahzaib shahzaib
This issue is fixed, now i am getting another issue. Whenever user requests for new file which is not yet downloaded on the edge server, user gets the 403 forbidden error on browser and on refreshing the browser, the same video started to stream as well as download. Why the proxy_store is showing 4

Re: using location.capture to post a form

2014-09-18 Thread Yichun Zhang (agentzh)
Hello! On Thu, Sep 18, 2014 at 9:02 AM, jpsonweb wrote: > I was able to post the parameter from nginx by passing the arguments using > this. >local maken_res = ngx.location.capture("/test", { method = ngx.HTTP_POST, > args = { pagelayout = dev_res_encoded }}); > You're passing your args via U

Re: using location.capture to post a form

2014-09-18 Thread jpsonweb
Thank you Yichun, I was able to post the parameter from nginx by passing the arguments using this. local maken_res = ngx.location.capture("/test", { method = ngx.HTTP_POST, args = { pagelayout = dev_res_encoded }}); This works only when post parameter size is less than 81568 characters. When

Re: 2 certs, 1 domain, 1 IP

2014-09-18 Thread Rob Stradling
On 17/09/14 16:17, shm...@riseup.net wrote: it works with postfix i guess not in nginx feature request ? Hi. You could try this patch: http://forum.nginx.org/read.php?29,243797,244306#msg-244306 It's nearly a year old so it may well need tweaking to make it apply cleanly to the latest Nginx

Redirect to a different url based on a query.

2014-09-18 Thread Geo P.C.
We have a wordpress installation and need to redirect lost password link to another different url for this we trying to setup a redirect rule but this is not working. Can anyone please help us. location / { proxy_pass http://localhost; } location wp-login.php?action=lostpassword rewrite

Re: Proxy_store downloading half videos !!

2014-09-18 Thread shahzaib shahzaib
Looks like on using the proxy_pass http://fl008.origin.com:80 $uri; it worked . Could :80 be the issue ? On Thu, Sep 18, 2014 at 6:43 PM, shahzaib shahzaib wrote: > >>proxy_pass http://fl008.origin.com$uri; > It didn't work instead the error 502 gateway started to show u

Re: Proxy_store downloading half videos !!

2014-09-18 Thread shahzaib shahzaib
>>proxy_pass http://fl008.origin.com$uri; It didn't work instead the error 502 gateway started to show up when proxying the request via proxy_pass. On Thu, Sep 18, 2014 at 6:32 PM, shahzaib shahzaib wrote: > Thanks a lot for the solution Roman, i'll get back to you after applying > the fix. :-)

Re: Proxy_store downloading half videos !!

2014-09-18 Thread shahzaib shahzaib
Thanks a lot for the solution Roman, i'll get back to you after applying the fix. :-) On Thu, Sep 18, 2014 at 6:29 PM, Roman Arutyunyan wrote: > > Try this directive instead of yours to download the entire file from the > backend > > proxy_pass http://fl008.origin.com$uri; > > > On 18 Sep 2014,

Re: Proxy_store downloading half videos !!

2014-09-18 Thread Roman Arutyunyan
Try this directive instead of yours to download the entire file from the backend proxy_pass http://fl008.origin.com$uri; On 18 Sep 2014, at 15:25, shahzaib shahzaib wrote: > Yes, the mp4 modules is enabled on origin as well as edge. Could you please > help me resolving the issue ? > > On

Building a redundant mail service

2014-09-18 Thread Nikolaos Milas
Hello, I would appreciate your advice on the following: We are trying to build a redundant mail service, and we are investigating the use of nginx as smtp/pop3/imap proxy with TLS/SSL support (ports 25/587, 143/993, 110/995). We already have two production mail servers, vmail1 and vmail2, ru

Re: Proxy_store downloading half videos !!

2014-09-18 Thread shahzaib shahzaib
Yes, the mp4 modules is enabled on origin as well as edge. Could you please help me resolving the issue ? On Thu, Sep 18, 2014 at 4:21 PM, Roman Arutyunyan wrote: > > On 18 Sep 2014, at 14:49, shahzaib shahzaib wrote: > > > Hi, > > > >We're using proxy_store on the edge server for replicati

Re: Proxy_store downloading half videos !!

2014-09-18 Thread Roman Arutyunyan
On 18 Sep 2014, at 14:49, shahzaib shahzaib wrote: > Hi, > >We're using proxy_store on the edge server for replicating requested mp4 > files and some of our users reported that some of the videos are half sized > and therefore they are unable to stream whole video file on their end (comin

Re: Proxy_store downloading half videos !!

2014-09-18 Thread shahzaib shahzaib
nginx version: nginx/1.7.4 built by gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --l

Proxy_store downloading half videos !!

2014-09-18 Thread shahzaib shahzaib
Hi, We're using proxy_store on the edge server for replicating requested mp4 files and some of our users reported that some of the videos are half sized and therefore they are unable to stream whole video file on their end (coming from the edge server). On digging into the access_logs of nginx,

Re: ssl hand shake with upstream url

2014-09-18 Thread Maxim Dounin
Hello! On Thu, Sep 18, 2014 at 11:02:18AM +0530, thunder hill wrote: > Hi, > > I am getting ssl hand shake error. upstream server is running on 443 port. > Enabled the debug in nginx. > And the configuration is as follows. [...] > 2014/09/18 05:14:57 [debug] 2460#0: *1 SSL handshake handler: 1

New session id on each request...

2014-09-18 Thread bjorntj
I have Nginx as a reverse proxy in front of a Tomcat server running a webapp. This works ok using Firefox but not Chrome or IE... When using Chrome or IE, the JSESSIONID gets a new value for each request (instead of keeeping the same value as it should). Are there some settings I am missing to fix