Re: nginx for Postgres servers

2015-07-14 Thread Miguel Clara
You mean something like: https://github.com/FRiCKLE/ngx_postgres ? On July 14, 2015 9:47:01 PM GMT+01:00, Tom Ekberg wrote: >I know nginx is designed to handle web and mail servers. Does it make >sense to use to handle multiple (in our case 2) PostgreSQL database >servers? > >Tom Ekberg >Senior

Re: 502 Error Issue

2015-06-24 Thread Miguel Clara
On June 24, 2015 11:45:38 AM GMT+01:00, "mudgil.gaurav" wrote: >Hi All, > >We recently migrated from apache to nginx. > >OS - CetnOS 6 >Nginx - 1.62 (4 CPU 8 GB RAM) >PHP-FPM (php 5.4.37) (4 CPU 8 GB RAM) >APC (Code Cache APC 3.1.13 beta) >Memcache (data cache) > >I have upstream of 4 php serv

Re: A bit confused...

2015-06-11 Thread Miguel Clara
ve no clue why, maybe something in the config Melhores Cumprimentos // Best Regards ------- Miguel Clara IT - Sys Admin & Developer ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: A bit confused...

2015-06-11 Thread Miguel Clara
On Fri, Jun 12, 2015 at 3:00 AM, steve wrote: > Aargh! > > > On 12/06/15 13:56, Miguel Clara wrote: >> >> Interesting I tried at my side got the same results but it does work like >> this: >> >> curl -I >> "http://backend.right.bike/images/m

Re: A bit confused...

2015-06-11 Thread Miguel Clara
ified: Thu, 11 Jun 2015 10:09:54 GMT Connection: keep-alive ETag: "55795e72-4db7f" Expires: Sat, 13 Jun 2015 01:55:27 GMT Cache-Control: max-age=86400 Accept-Ranges: bytes Melhores Cumprimentos // Best Regards ------- Miguel Clara IT - Sys Admin

Re: Nginx with Mailman

2015-03-26 Thread Miguel Clara
On March 26, 2015 1:15:44 PM WET, Silvio Siefke wrote: >Hello, > >i try to run mailman on nginx over fcgiwrap. If you can I would suggest uWsgi module instead of fcgiwrap. The sock is present on >system >and has correct rights, but >log say me can not find. > >server { >listen 80; >listen [::

Re: ssl_protocols per server?

2014-10-16 Thread Miguel Clara
On Thu, Oct 16, 2014 at 2:58 PM, Maxim Dounin wrote: > Hello! > > On Thu, Oct 16, 2014 at 02:41:33PM +0100, Miguel Clara wrote: > > > Hum... makes sense when sni is involved yes, but I get the same issue if > > using the same certificate (wildcard) for 2 subdomains ou

Re: ssl_protocols per server?

2014-10-16 Thread Miguel Clara
primentos // Best Regards ------- *Miguel Clara* *IT - Sys Admin & Developer* *E-mail:*miguelmcl...@gmail.com www.linkedin.com/in/miguelmclara/ On Thu, Oct 16, 2014 at 2:01 PM, Maxim Dounin wrote: > Hello! > > On Thu, Oct 16, 2014 at 12:37:19AM +0100, Miguel Clara wr

Re: ssl_protocols per server?

2014-10-16 Thread Miguel Clara
es Cumprimentos // Best Regards ------- *Miguel Clara* *IT - Sys Admin & Developer* *E-mail:*miguelmcl...@gmail.com www.linkedin.com/in/miguelmclara/ On Thu, Oct 16, 2014 at 8:15 AM, mex wrote: > could youe please send/gist yo

Re: ssl_protocols per server?

2014-10-15 Thread Miguel Clara
listen 443 ssl spdy; Actually but sni is working fine sslabs reports the correct certs... just tells me SSLv3 is on in all when its only set for one of the domains... At first I had " ssl_protocols TLSv1 TLSv1.1 TLSv1.2;" at the http level and just set " ssl_protocols SSLv3 TLSv1 TLSv1.1 T

Re: ssl_protocols per server?

2014-10-15 Thread Miguel Clara
Forgot to mention this is with "nginx version: nginx/1.6.0" compile with the normal "full" options + pagespeed Melhores Cumprimentos // Best Regards ------- *Miguel Clara* *IT - Sys Admin & Developer* *E-mail:

ssl_protocols per server?

2014-10-15 Thread Miguel Clara
>From the docs: Syntax: ssl_protocols [SSLv2] [SSLv3] [TLSv1] [TLSv1.1] [TLSv1.2]; Default: ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; Context: http, server however I'm trying to have onde server with: ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2; and another with: ssl_protocols TLSv1 TLSv1.1 TLSv1

Re: 502 errors with nginx and php5-fpm

2014-09-11 Thread Miguel Clara
What do you see in the php-fpm logs? Maybe the php-fpm processes are not enough to handle the requests. On September 11, 2014 9:42:51 PM GMT+01:00, nfn wrote: >Hi, > >Here is the debug log: http://pastebin.com/raw.php?i=w8Bwj4pS > >Can you help me understand why I have these random 502 error? >

Re: Windows 2008 - logging off kills nignx

2014-09-11 Thread Miguel Clara
On September 11, 2014 2:27:52 PM GMT+01:00, ronlemonz wrote: >Thank you. Seems awkward to set it as a service... in windows. Why? Doesn't windows run other services? Ex: IIS Actually I'd prefer of windows and run less services by deafault I always have to do some cleaning, but its worst in d

Re: Windows 2008 - logging off kills nignx

2014-09-10 Thread Miguel Clara
How are you staring nginx? On September 10, 2014 3:22:24 PM GMT+01:00, ronlemonz wrote: >Nginx serves pages until I log off the web server. I need to log in >again >and start nginx (sometimes needing to kill IIS). >Thanks for any thoughts, >Ron > >Posted at Nginx Forum: >http://forum.nginx.org/r

Re: urgent need help ,ssl error ;

2014-09-05 Thread Miguel Clara
Seems like "/etc/nginx/ssl/server.crt" content is not correct ("no start line error), maybe a bad copy paste? Melhores Cumprimentos // Best Regards ------- *Miguel Clara* *IT - Sys Admin & Developer* *E-mail:*mig

Re: Nginx using with https :(

2014-08-30 Thread Miguel Clara
The config Could use a some polish but you'll get there. Glad you could understand what was wrong ;) Melhores Cumprimentos // Best Regards --- *Miguel Clara* *IT - Sys Admin & Developer* *E-mail:*miguelmcl...@gmail.com www.linked

Re: Nginx using with https :(

2014-08-30 Thread Miguel Clara
rst hits should give you enough info) Melhores Cumprimentos // Best Regards ------- *Miguel Clara* *IT - Sys Admin & Developer* *E-mail:*miguelmcl...@gmail.com www.linkedin.com/in/miguelmclara/ On Sun, Aug 31, 2014 at 2:08 AM, ngin

Re: Nginx using with https :(

2014-08-30 Thread Miguel Clara
st Regards ------- *Miguel Clara* *IT - Sys Admin & Developer* *E-mail:*miguelmcl...@gmail.com www.linkedin.com/in/miguelmclara/ On Sat, Aug 30, 2014 at 5:25 PM, nginxfanboy wrote: > With your config i become this message by a restart :( > > root@cseipel:/etc/nginx

Re: openssl 1.0.1 and tls1.1 and up

2014-04-15 Thread Miguel Clara
I should clarify the the default for ssl_protocols is fine, to my environment since we need to support SSLv3, if you don't I suggest make it safer: ssl_protocols TLSv1 TLSv1.1 TLSv1.2; On Tue, Apr 15, 2014 at 2:31 PM, Miguel Clara wrote: > > I have an nginx 1.5 install where I do

Re: openssl 1.0.1 and tls1.1 and up

2014-04-15 Thread Miguel Clara
I have an nginx 1.5 install where I don't set the ssl_protocols, because, the defaults are fine: ---> "Since versions 1.1.13 and 1.0.12, nginx uses “ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2” by default." This is what I have find to be the best for ciphers, SSLLABS seems to like it, I would even

Re: Converting Rewrites to Nginx

2014-03-18 Thread Miguel Clara
location / { try_files $uri $uri/ /index.php?url=$1 last; } Maybe what you want here is: location / { try_files $uri $uri/ @rewrite; } location @rewrite { rewrite ^/(.*)$ /index.php/$1; } On Tue, Mar 18, 2014 at 12:05 PM, parkerj wrote: > I have been trying to convert the follow

Re: "Primary script unknown" wp-login.php

2014-01-09 Thread Miguel Clara
> I resolved this problem by making the /wordpress directory the server root. > However, I now have the problem of /usr/local/www/phpMyAdmin being > inaccessible, due to the same error. > You can, and its probably best to use: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; A

Re: Need to add expires header conditionally based on mime types

2013-06-13 Thread Miguel Clara
>From what you describe I do think the suggested nginx config is enough... However maybe you're looking for something like this: http://stackoverflow.com/questions/14631044/expires-header-based-on-dynamic-content-type-in-nginx Not really sure if it suits you're needs, but It seems this is what y

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-14 Thread Miguel Clara
I would suggest using php-fpm, its very easy to setup, in fact its integrated to recent releases of PHP (5.4++) On Tue, May 14, 2013 at 11:46 PM, d3f3kt wrote: > Use this command with the "-C 6" and than you should be happy > > Posted at Nginx Forum: > http://forum.nginx.org/read.php?2,239181,

Re: Migrating existing Apache config

2013-05-08 Thread Miguel Clara
I was just about to suggest the same tool to convert .htaccess but has warned in the website it does not convert everything and also it does not check syntax errors, so It might be even worst. I would prefer to do it "from scratch"... You might find some useful help here: http://forum.nginx.o

Re: Nginx 1.4 problem

2013-05-06 Thread Miguel Clara
If this is a linux box you could simple use [::]:80 and it should, by default, responde to both v4 and v6... "In Linux by default any IPv6 TCP socket also accepts IPv4 traffic using the IPv4 to IPv6 mapped address format, i.e., :::. E.g., :::192.168.0.27 maps the IPv4 address 192.168.0.27

Re: nginx eating all RAM, log files?

2013-04-22 Thread Miguel Clara
Before anything I suggest you upgrade you nginx install... you're running nginx/1.0.15, the last satble version is 1.2.8! It might be some bug that was fixing in the mean time! On Mon, Apr 22, 2013 at 7:30 PM, Joseph Cabezas wrote: > I have two nginx instances (nginx/1.0.15) on a 4GB RAM machin

Re: uWSGI + Moin (subdir) + Nginx

2013-03-25 Thread Miguel Clara
Thanks for the hint... I though passing SCRIPT_NAME was a "ugly" way to do into, but since it was refereed in the docs... I was using mount: uwsgi -s /tmp/moin.socket --uid nginx --gid nginx --mount /wiki=/usr/pkg/share/moin/mywiki/moin.wsgi -M -p 2 -d /var/log/nginx/uwsgi_moin.log --logdate --pid

uWSGI + Moin (subdir) + Nginx

2013-03-25 Thread Miguel Clara
Hi, I followed the example in: http://projects.unbit.it/uwsgi/wiki/Example#MoinMoinonlinenow However when I type domain/wiki I get a message that the page does not exist yet... which already tells me something is wrong, and also all my URL's are point to '/' not '/wiki' I can't seem to figure