Re: Proxy Bypass only specific IP

2014-06-23 Thread itpp2012
if ($remote_addr ~ "^(10.10.*.*)$") { } Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251124,251126#msg-251126 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Proxy Bypass only specific IP

2014-06-23 Thread TheBritishGeek
I am looking for a way for allow that proxy_cache_bypass but only on a secific hostname and client IP address. My current setup is as follows: location ~* \.(gif|jpg|jpeg|png|wmv|avi|mpg|mpeg|mp4|wmv|js|css|mp3|swf|ico|flv|json|csv|txt|svg|ttf|eot|otf|cff|afm|lwfn|ffil|fon|pfm|pfb|woff|std|pro|xs

Re: Best method for adding GeoIP support

2014-06-23 Thread TheBritishGeek
Thanks for help on this, I decided to just go ahead and compile this ourselves as as we really need the GoIP features. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,250978,251123#msg-251123 ___ nginx mailing list nginx@nginx.org http://mail

Re: Problem with auth_basic and auth_basic_user_file

2014-06-23 Thread Maxim Dounin
Hello! On Mon, Jun 23, 2014 at 03:26:14PM -0400, Varix wrote: > Hallo, > > I want a login for this location. > > location /TEST/ { >alias /www/c2c/; >} > > With > > location /TEST/ { >alias /www/c2c/; >auth_basic "Test Auth"; > } > > no username

Re: fastcgi_cache

2014-06-23 Thread Maxim Dounin
Hello! On Mon, Jun 23, 2014 at 01:08:33PM -0400, ariel_esp wrote: > Hi, I already try this... but... not work =/ > when in the page, I do "shift+f5", page is re-read "EXPIRED"... OK > but, this entering in the page, or do F5 ... page = HIT cache... > In this specifics pages, I always put php head

Re: nginx location+proxy_pass?

2014-06-23 Thread Amir Eldor
Hi guys :), Back then in 1987 I think (when I was born) I think that I heard some dutch. Really helped me today when I grew older and 'm 27 (in August). Find me on a...@amir-x.com ;) I'm here to stay. Just don't press + look around coz it's hard with all the technology today... That's it! TAK

Problem with auth_basic and auth_basic_user_file

2014-06-23 Thread Varix
Hallo, I want a login for this location. location /TEST/ { alias /www/c2c/; } With location /TEST/ { alias /www/c2c/; auth_basic "Test Auth"; } no username/password box in the browser. I see the index.html site from the c2c folder With location

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

2014-06-23 Thread shahzaib shahzaib
>> You can use proxy_store with the mp4 module. So, proxy_store is able to download whole mp4 file once and than server that file locally without fetching each time from the origin if users seek through the video ? On Mon, Jun 23, 2014 at 7:43 PM, Roman Arutyunyan wrote: > > On 23 Jun 2014, at

Re: fastcgi_cache

2014-06-23 Thread ariel_esp
Hi, I already try this... but... not work =/ when in the page, I do "shift+f5", page is re-read "EXPIRED"... OK but, this entering in the page, or do F5 ... page = HIT cache... In this specifics pages, I always put php header "cache-control, pragma, etc" as "no-cache", so, I want always get a new p

Re: fastcgi_cache

2014-06-23 Thread Maxim Dounin
Hello! On Mon, Jun 23, 2014 at 10:56:17AM -0400, ariel_esp wrote: > Hi, > I am trying setup fastcgi_cache. > Working fine BUT I need bypass some pages... when theses pages have > header "no-cache" but I dont know how to do this... > The rules for bypass using urls, work fine.. like this:

Velocity Conference

2014-06-23 Thread Sarah Novotny
Hi All, We have some of the NGINX team at Velocity this week. If you’re in Santa Clara this week, stop by and see us we have lots planned! http://nginx.com/blog/velocity-need-for-speed/ sarah ___ nginx mailing list nginx@nginx.org http://mailma

fastcgi_cache

2014-06-23 Thread ariel_esp
Hi, I am trying setup fastcgi_cache. Working fine BUT I need bypass some pages... when theses pages have header "no-cache" but I dont know how to do this... The rules for bypass using urls, work fine.. like this: [code] if ($request_uri ~* "(/wp-admin/|/xmlrpc.php|/wp-(app|cron|login|regis

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

2014-06-23 Thread Roman Arutyunyan
On 23 Jun 2014, at 17:15, itpp2012 wrote: > Roman Arutyunyan Wrote: > --- >> Moreover the mp4 module does not work over proxy cache. That means >> even if you fix the cache key issue >> mp4 seeking will not work. You need to have a local mp4

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

2014-06-23 Thread Roman Arutyunyan
On 23 Jun 2014, at 16:47, shahzaib shahzaib wrote: > @Roman thanks for reply, > > >> your second request has a different cache key, so the > file is downloaded again. > > Means, if a user seeks through the video i.e http://url/test.mp4?start=99 , > the whole file again gets downloaded or the

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

2014-06-23 Thread shahzaib shahzaib
>>Hmm, what about a hack, if the file is cached keep a link to the cached file and its original name, if the next request matches a cached file and its original name and a seek is requested then pass the cache via its original name to allow seeking on the local (but cached) file. That means, i sho

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

2014-06-23 Thread itpp2012
Roman Arutyunyan Wrote: --- > Moreover the mp4 module does not work over proxy cache. That means > even if you fix the cache key issue > mp4 seeking will not work. You need to have a local mp4 file to be > able to seek mp4 like that. Hmm, what

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

2014-06-23 Thread shahzaib shahzaib
@Roman thanks for reply, >> your second request has a different cache key, so the file is downloaded again. Means, if a user seeks through the video i.e http://url/test.mp4?start=99 , the whole file again gets downloaded or the partial part of the file from 99sec to onward gets downloaded ? If th

RE: GeoIP FirstNonPrivateXForwardedForIP

2014-06-23 Thread Lukas Tribus
> Hello, > > Can someone please look into this.. I need it for proper website > functionality. I don't see why you would need it once you properly setup the proxy whitelist? ___ nginx mailing list nginx@nginx

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

2014-06-23 Thread Roman Arutyunyan
On 19 Jun 2014, at 10:12, shahzaib shahzaib wrote: > > we're using two servers (one proxy and one backend). Proxy server is > using proxy_cache to cache mp4 files from backend server and working fine. > When i stream a full video from cache, the header response gives me the > cache-sta

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

2014-06-23 Thread Steve Wilson
On 23/06/2014 12:05, Keyur wrote: Thanks Jonathan! Well I can not comment regarding getting professional service. Infact I will be glad to have support but If I go with this approach then I would rather be asked to use web server which supports the said feature. (This is doable in apache). A

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

2014-06-23 Thread Keyur
Thanks Jonathan! Well I can not comment regarding getting professional service. Infact I will be glad to have support but If I go with this approach then I would rather be asked to use web server which supports the said feature. (This is doable in apache). And I really don't want to do away with N

Re: RE: GeoIP FirstNonPrivateXForwardedForIP

2014-06-23 Thread Jonathan Matthews
On 23 Jun 2014 07:58, "Keyur" wrote: > > Hello, > > Can someone please look into this.. I need it for proper website > functionality. I don't know the answer to your problem and perhaps, given the lack of reply, no one on this public mailing list mainly populated by non-nginx staff does either.