Re: serve content from a wget mirror

2014-11-25 Thread Francis Daly
On Tue, Nov 25, 2014 at 07:13:49PM +, Steve Wilson wrote: > On 24/11/2014 12:36, Francis Daly wrote: > > On Mon, Nov 24, 2014 at 11:05:10AM +, Steve Wilson wrote: Hi there, > > Option 1: in all of the html that contains links that refer > > to /dir/page.php?a=1&b=2, url-encode it to be (a

Re: Upgrading mysql and configurating my custom 404.html page.

2014-11-25 Thread Francis Daly
On Tue, Nov 25, 2014 at 02:56:18PM +0100, Thornx John wrote: Hi there, > Now I must make a choice: keep or not Apache2 ! > > I confess that I prefer nginx, but if I uninstall apache that will > happen to my website ? > > I hope it's a little clearer. If you have a working system, the easiest t

Worker Connections not being released

2014-11-25 Thread Nathan Eloe
Hello all, I have been developing an nginx module that allows the sending of zeromq messages through nginx (inspired by https://github.com/FRiCKLE/ngx_zeromq). The code base for this can be found here: https://github.com/neloe/ngx_zmq However, I'm running into an issue where when running with a mi

Re: Validate Client certificate SDN fields (CN, OU, O, etc..) at Nginx

2014-11-25 Thread Francis Daly
On Tue, Nov 25, 2014 at 10:19:35AM -0500, sandeepkolla99 wrote: Hi there, > I'm trying to validate my client certificate SDN fields (CN, OU, O, > etc..) at Nginx server. I find so many internet resources for Apache but not > Nginx. Does Nginx support validating SDN fields. BTW, I'm using Ngin

Re: Proxy buffering

2014-11-25 Thread Pasi Kärkkäinen
Hello again, Any thoughts about the proxy no_buffer feature? Proxy buffering (for uploads) is an actual problem for many nginx proxy setups, because uploads are saved to nginx local disk first while processing, which makes the uploads slow, and in the case of big upload filesizes also there's

Re: serve content from a wget mirror

2014-11-25 Thread Steve Wilson
On 24/11/2014 12:36, Francis Daly wrote: > On Mon, Nov 24, 2014 at 11:05:10AM +, Steve Wilson wrote: > > Hi there, > >> I'm trying to create an archive based on a current site which is due to >> be taken down, I've used "wget -m" to mirror the site and all seems well >> except I'm having trou

Re: rate limit with good bot IPs whitelisted

2014-11-25 Thread neubyr
On Sat, Nov 22, 2014 at 12:53 PM, itpp2012 wrote: > > > I was wondering if remote ip's hostname lookup can be done before > > > rate-limiting it. For example, I don't want to block IPs coming from > > > > Nginx does not lookup remote hostnames at all. > > https://github.com/flant/nginx-http-rdn

Re: rewrite or return for simple redirection

2014-11-25 Thread neubyr
Thank you Maxim! That's helpful explanation. -N On Mon, Nov 24, 2014 at 6:39 AM, Maxim Dounin wrote: > Hello! > > On Fri, Nov 21, 2014 at 02:53:50PM -0800, neubyr wrote: > > > On Fri, Nov 21, 2014 at 12:11 PM, Maxim Dounin > wrote: > > [...] > > > > For such cases rewrite is better, IMHO. In

vpn-ws a VPN over websockets (behind nginx)

2014-11-25 Thread Roberto De Ioris
Hi all, i have released a tool for building VPNs (with various operational modes) using only websockets as a transport. The server-side delegates all the authentication, authorization and proxy part to nginx: https://github.com/unbit/vpn-ws i hope it will be useful Regards -- Roberto De Ioris

Validate Client certificate SDN fields (CN, OU, O, etc..) at Nginx

2014-11-25 Thread sandeepkolla99
Hi friends, I'm trying to validate my client certificate SDN fields (CN, OU, O, etc..) at Nginx server. I find so many internet resources for Apache but not Nginx. Does Nginx support validating SDN fields. BTW, I'm using Nginx 1.6.2. Please help me in this. Regards, Sandeep Posted at Nginx Fo

Re: Upgrading mysql and configurating my custom 404.html page.

2014-11-25 Thread Thornx John
Hello Francis. Thank you for your reply. I made a discovery that cooled me, I stopped nginx fully with the command: kill -9 27932 27931 27930 27929 27928 27925 with the help of "ps ax" but the site still works with Apache in my opinion. Now I know why nginx does not react and personal error pag

Re: understanding nginx proxy magic

2014-11-25 Thread Valentin V. Bartenev
On Monday 24 November 2014 17:49:12 Johan Martinez wrote: > I installed nginx as a reverse proxy in front of apache server. No > configuration change was made on apache and nginx is simply passing all > requests to the backend apache. Now website is more responsive and it can > handle 1.3 times mor

Re: nginx + php-fpm: permission denid

2014-11-25 Thread ManuelRighi
Ok .. I set 755 permission to directory /var/run/php and 660 to php5-fpm.sock and now works ;) Tnx Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255096,255104#msg-255104 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailma

Re: nginx + php-fpm: permission denid

2014-11-25 Thread ManuelRighi
Hello, I try to set permission to php5-fpm.sock file to 666 (srw-rw-rw- 1 www-data www-data) but problem persist. On www.conf I have listen.mode = 0660 Posted at Nginx Forum: http://forum.nginx.org/read.php?2,255096,255103#msg-255103 ___ nginx mailing

Re: nginx + php-fpm: permission denid

2014-11-25 Thread Edho Arief
On Tue, Nov 25, 2014 at 9:48 PM, ManuelRighi wrote: > Hi, > > drwxr-xr-x 24 root root ? 4096 Oct 26 14:07 / > drwxr-xr-x 17 root root ? 4096 Nov 25 09:59 /var > drwxr-xr-x 21 root root ? 900 Nov 25 13:48 /var/run > drw-rw-rw- 2 www-data www-data ? 60 Nov 25 13:47 /var/r

Re: nginx + php-fpm: permission denid

2014-11-25 Thread ManuelRighi
Hi, drwxr-xr-x 24 root root ? 4096 Oct 26 14:07 / drwxr-xr-x 17 root root ? 4096 Nov 25 09:59 /var drwxr-xr-x 21 root root ? 900 Nov 25 13:48 /var/run drw-rw-rw- 2 www-data www-data ? 60 Nov 25 13:47 /var/run/php Posted at Nginx Forum: http://forum.nginx.org/read.php?

Re: nginx reload, stop error

2014-11-25 Thread Maxim Dounin
Hello! On Mon, Nov 24, 2014 at 01:25:21PM -0500, xning9 wrote: > I have two problems : Upgrading mysql and configurating my custom 404.html > page. Please don't hijack unrelated threads. Thank you. -- Maxim Dounin http://nginx.org/ ___ nginx mailin

Re: nginx + php-fpm: permission denid

2014-11-25 Thread basti
Hello, I guess you have not the permission to create the socket. My socket file look like: srw-rw-rw- 1 www-data www-data 0 Nov 24 15:37 www.sock Try to create this as root and set the permissions. Check also user, group, listen.owner, listen.group and listen.mode in your www.conf. In history

Re: nginx + php-fpm: permission denid

2014-11-25 Thread Francis Daly
On Tue, Nov 25, 2014 at 07:16:52AM -0500, ManuelRighi wrote: Hi there, > 2014/11/25 13:13:47 [crit] 5820#0: *29097 connect() to > unix:/var/run/php/php5-fpm.sock failed (13: Permission denied) Does ls -lLdZ / /var /var/run /var/run/php show why the user nginx runs as would be unable to get

nginx + php-fpm: permission denid

2014-11-25 Thread ManuelRighi
Hello, I have nginx 1.6.2 (compiled from source) and php-fpm 5.5.9 on Ubuntu server 14.04.1 LTS. I have problem with php-fpm, I receive error 502 Bad Gateway. In nginx error.log I found this: 2014/11/25 13:13:47 [crit] 5820#0: *29097 connect() to unix:/var/run/php/php5-fpm.sock failed (13: Permiss

Re: understanding nginx proxy magic

2014-11-25 Thread Francis Daly
On Mon, Nov 24, 2014 at 05:49:12PM -0800, Johan Martinez wrote: Hi there, > I installed nginx as a reverse proxy in front of apache server. No > configuration change was made on apache and nginx is simply passing all > requests to the backend apache. Now website is more responsive and it can > ha

Re: Upgrading mysql and configurating my custom 404.html page.

2014-11-25 Thread Francis Daly
On Mon, Nov 24, 2014 at 08:38:49PM +0100, Thornx John wrote: Hi there, > I have two problems : Upgrading mysql and configurating my custom > 404.html page. The 404 page part may be relevant to this mailing list. > So I spent days on google without finding solutions, knowing I had > previously