Re: Remove whitespaces from $args

2016-04-28 Thread Hett
Hi, I using third-party software, in some cases users create not valid url, and I want to fix it for example: http://xx.yy/xx/yy/?a=1&b=1 2 3.txt need replace by: http://xx.yy/xx/yy/?a=1&b=123.txt Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266482,266511#msg-266511 ___

Nginx as transparent tcp proxy

2016-04-28 Thread Yuriy Medvedev
Hi,everyone. How i can run nginx as transparent tcp proxy. Such as haproxy transparent. ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: naxsi as a dynamic module error on nginx 1.10.0

2016-04-28 Thread Anoop Alias
Hi Andrew, As an update the Passenger 5.0.28 version they just released seem to work fine and does not cause any issue . Here is the config args # nginx -V nginx version: nginx/1.10.0 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC) built with OpenSSL 1.0.1e-fi

Re: question about tmpfs

2016-04-28 Thread Reinis Rozitis
What happens when a add a new tmpfs partition e.g for squid? tmpfs uses also swap. So if you make the fs larger than actual ram and it starts to go beyond the physical memory limit things will be swaped out to disk (harddrive) and everything might become slow(er). In general if you can't fit

Video & Slides for our first Bay Area OpenResty Meetup

2016-04-28 Thread Yichun Zhang (agentzh)
Hi folks We had a good time at our first bay area OpenResty meetup [1] last month. Now I'd like to share with you the video recordings and slides for our presentations: * Presentation "adobe.io" from Adobe's Dragos Dascalita. * Slides: http://openresty.org/slides/adobe-io-openresty-meetup.pd

Re: Remove whitespaces from $args

2016-04-28 Thread Francis Daly
On Thu, Apr 28, 2016 at 06:46:11AM -0400, Hett wrote: Hi there, > Tell me please, how can I remove all spaces from $args ? I suspect that you may need to use one of the programming language modules available in your nginx to do that. Why do you want to do it? Perhaps there is an alternative ac

Re: Permanent Redirect on nginx

2016-04-28 Thread Francis Daly
On Thu, Apr 28, 2016 at 02:47:03PM +, Mumanyi, Bravismore wrote: Hi there, > My org has changed domain from unam.na to unam.edu.na. I intend to effect a > permanent redirect on Nginx. Have two server{} blocks. The one with "server_name new-name;" should be the fuller one, doing everything

Re: question about tmpfs

2016-04-28 Thread Styopa Semenukha
Hi, This is probably not related to Nginx, you might want to visit Linux forums or lists for more detailed information. However, having tmpfs mounted at those directories is a normal mode of operation in many Linux distros. They are mounted automatically, and typically you don't need to worry a

Permanent Redirect on nginx

2016-04-28 Thread Mumanyi, Bravismore
Dear Nginx Community My org has changed domain from unam.na to unam.edu.na. I intend to effect a permanent redirect on Nginx. I have tried the lines in bold below but browsers are complaining of too many redirects. Any tips on how I can adjust the config file for permanent redirect? -

Re: nginx access_log Buffer size, service not restarting

2016-04-28 Thread Muhammad Yousuf Khan
Thanks, got it. and it worked too. Thanks alot. On Wed, Apr 27, 2016 at 7:04 PM, Maxim Dounin wrote: > Hello! > > On Wed, Apr 27, 2016 at 05:29:03PM +0500, Muhammad Yousuf Khan wrote: > > > i am trying to increase the buffer size of access_log > > > > i have tried different options but all givi

Remove whitespaces from $args

2016-04-28 Thread Hett
Hi, Tell me please, how can I remove all spaces from $args ? I create solution, it remove up to 5 spaces. But it not best way i think. if ($args ~ (.*)\s(.*)$) { set $args $1$2; } if ($args ~ (.*)\s(.*)$) { set $args $1$2; } if ($args ~ (.*)\s(.*)$) { set $args

question about tmpfs

2016-04-28 Thread basti
Hello, I have a question about tmpfs. On my raspberry pi I with only 256 MB RAM df looks like. root@pi:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/root15G 2.0G 13G 14% / devtmpfs111M 0 111M 0% /dev tmpfs 115M 0 115M 0% /dev/shm tmpfs

Re: nginx logrotate : permission denied

2016-04-28 Thread omkar_jadhav_20
server is of linux flavour... to be precise it is of Red Hat Enterprise Linux Server release 6.5... Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266475,266479#msg-266479 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailm

Re: nginx logrotate : permission denied

2016-04-28 Thread itpp2012
nginx -s reopen Posted at Nginx Forum: https://forum.nginx.org/read.php?2,266475,266476#msg-266476 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

nginx logrotate : permission denied

2016-04-28 Thread omkar_jadhav_20
ion denied) post logrotate , new files with name /var/log/nginx/access_abcd.log are getting created but logs are still getting written in old file with name /var/log/nginx/access_abcd.log-20160428 logrotate file is as below : - /var/log/nginx/*.log /usr/l

Re: naxsi as a dynamic module error on nginx 1.10.0

2016-04-28 Thread Anoop Alias
Hi Andrew , Thank you. Here are some more from strace and whats shown in stdout while compiling . Not sure if its gonna help . ## relevant portion of strace nginx -t open("/etc/group", O_RDONLY|O_CLOEXEC) = 5 fstat(5, {st_mode=S_IFREG|0644, st_size=1

Re: (52) Empty reply from server

2016-04-28 Thread Francis Daly
On Tue, Apr 26, 2016 at 04:52:22PM +0530, Pankaj Chaudhary wrote: Hi there, > I have requirement to create own cookie based on input and wirte the that > cookie in header. > whenever i need that i can read from header and use it. I confess that I do not understand what that requirement actuall