Re: Nginx with php configuration how to block all requests/urls other than two?

2015-01-29 Thread c0nw0nk
Thanks for the help guys i have it working but i am not sure what config i should be using out of these two what one would be better. itpp2012's config : map $request $allowonly { default 1; ~*addmedia\.upload([a-zA-Z0-9-_=&]) 0; } server { listen 80; listen [::]:80; server_name sub1.domain.co

Re: Google QUIC support in nginx

2015-01-29 Thread jtan
This would be interesting. But I guess we would need to wait. On Fri, Jan 30, 2015 at 2:35 PM, justink101 wrote: > Any plans to support Google QUIC[1] in nginx? > > [1] http://en.wikipedia.org/wiki/QUIC > > Posted at Nginx Forum: > http://forum.nginx.org/read.php?2,256352,256352#msg-256352 > > _

Google QUIC support in nginx

2015-01-29 Thread justink101
Any plans to support Google QUIC[1] in nginx? [1] http://en.wikipedia.org/wiki/QUIC Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256352,256352#msg-256352 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ngin

Re: rbtree in ngx_http_upstream_fair_module.c

2015-01-29 Thread squonk
I think i underatand a bit better now. The tree is storing metadata for potentially multiple upstream groups per generation. It seems like a reasonable implementation given the expected short duration of threads referencing data from older generations (hence a shallow tree) and the fact there is o

Re: Nginx with php configuration how to block all requests/urls other than two?

2015-01-29 Thread Francis Daly
On Thu, Jan 29, 2015 at 09:20:36AM -0500, c0nw0nk wrote: > So i use nginx with PHP and i have the following two urls i want to allow > access on the subdomain. > > The full url would be > sub1.domain.com/index.php?option=com_hwdmediashare&task=addmedia.upload&base64encryptedstring Usually you don

rbtree in ngx_http_upstream_fair_module.c

2015-01-29 Thread squonk
hi.. Just wanted to ensure my understanding of rbtree usage in Grzegorz Nosek's upstream fair load balancer is correct. I believe the rbtree is necessary because when nginx.conf is reloaded workers may continue to reference upstream server metadata from earlier versions aka generations of the ngin

Re: Nginx with php configuration how to block all requests/urls other than two?

2015-01-29 Thread B.R.
​Chained maps maybe?​ http { map $arg_option $step2 { default 1; com_hwdmediashare $arg_task; } map $step2 $step3 { default 1; addmedia.upload $request; } map $step3 $blocked { default 1; ~*(?:\?|&)?base64encryptedstring 0;

Re: Nginx with php configuration how to block all requests/urls other than two?

2015-01-29 Thread itpp2012
In the map flip the 1 and 0 around, if $allowonly=1 then the IF is true (unless that's what you want). General rule for IF's; only use it to return a state. if . return continue with complex configuration items. Don't do: 'if . do complex things ' (unless proceeded with Lua fini

Re: Nginx with php configuration how to block all requests/urls other than two?

2015-01-29 Thread c0nw0nk
map $request $allowonly { default 1; ~*addmedia\.upload([a-zA-Z0-9-_=&]) 0; } location / { if ($allowonly) { try_files $uri $uri/ /index.php?$args; } } location ~ \.php$ { ##fastcgi pass etc here } That would be my location block to deny all requests except for that single php url but i cant add t

Re: Nginx with php configuration how to block all requests/urls other than two?

2015-01-29 Thread itpp2012
Use map, map $request $allowonly { default 1; ~*addmedia\.upload([a-zA-Z0-9-_=&]) 0; 1; } inside location {} if ($allowonly) { return 404; } Untested but should give you enough to test with. Posted at Nginx Forum: http://fo

Nginx with php configuration how to block all requests/urls other than two?

2015-01-29 Thread c0nw0nk
So i use nginx with PHP and i have the following two urls i want to allow access on the subdomain. The full url would be sub1.domain.com/index.php?option=com_hwdmediashare&task=addmedia.upload&base64encryptedstring if ( $args ~ 'option=com_hwdmediashare&task=addmedia.upload([a-zA-Z0-9-_=&])' ) {

Re: default_server directive not respected

2015-01-29 Thread Francis Daly
On Thu, Jan 29, 2015 at 12:50:41PM +0100, Lorenzo Raffio wrote: Hi there, > listen 80; > listen 443 ssl default_server spdy; > ... but it's not respected. If I point the A record of a domain I didn't > add in a nginx server block, the first server block in alphabetical order > is picked

Re: default_server directive not respected

2015-01-29 Thread itpp2012
Does this one help? http://wiki.nginx.org/ServerBlockExample Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256329,256333#msg-256333 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

default_server directive not respected

2015-01-29 Thread Lorenzo Raffio
I have multiple files each with a config for a different vhost. On one of these config files (included in the main nginx config file) I set the default_server directive: server { listen 80; listen 443 ssl default_server spdy; server_name 188.166.X.XXX; root /var/www/default;

Re: Nginx Supports SLES 11?

2015-01-29 Thread Juriy Strashnov
There are some precompiled packages for SLE 11 SP2, SP3 from SuSE community: http://software.opensuse.org/package/nginx On Thu, Jan 29, 2015 at 10:42 AM, wrote: > Hi, > > According to *http://nginx.org/en/linux_packages.html,* > Nginx only supports SLES

Proxy cache of X-Accel-Redirect, how?

2015-01-29 Thread bongtv
Hi! Tried to cache the X-Accel-Redirect responses from Phusion Passenger application server with the use of a second layer without success (followed the hint on http://forum.nginx.org/read.php?2,241734,241948#msg-241948). Configuration: 1) Application server (Phusion Passenger) adds X-A

Re: Nginx Supports SLES 11?

2015-01-29 Thread mex
you'll need a lot of packages from the SDK-DVDs. IIRC those are not available as online-repos, but situation might have changed. mex Posted at Nginx Forum: http://forum.nginx.org/read.php?2,256323,256325#msg-256325 ___ nginx mailing list nginx@nginx