virtual or physical?

2014-02-20 Thread Marc-Olivier Meunier
Hi! If I have one host, am I going to get better performances if I run only one nginx on the physical host, or would it be more beneficial to run 4 virtual machines each running a different nginx? Thanks! -- Marc-Olivier Meunier +358 50 4840036 ___ ngin

RE: Combining nginx with a library that manages it's own threads?

2014-02-20 Thread Reetesh Ranjan
I forgot to mention: you loose all thread management as well. Regards,Reetesh From: reete...@outlook.com To: nginx@nginx.org Subject: RE: Combining nginx with a library that manages it's own threads? Date: Fri, 21 Feb 2014 11:38:50 +0530 Hi Jan, I guess you are looking for an upstream nginx mo

RE: Combining nginx with a library that manages it's own threads?

2014-02-20 Thread Reetesh Ranjan
Hi Jan, I guess you are looking for an upstream nginx module to talk to Cassandra in place of the C++ client you mentioned. I did something similar for talking to Sphinx search platform (https://github.com/reeteshranjan/sphinx2-nginx-module). There was a C++ client; but if you want nginx to cont

Re: Incorrect IP Address Deducted by Nginx version: nginx/1.2.1

2014-02-20 Thread xinggu
We are professional Ring Die manufacturers and factory.We can produce high quality Pellet Die according to your requirements.More types of Pellet Mill Die wanted,please contact us right now Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247736,247824#msg-247824

Re: Check if the file exists.

2014-02-20 Thread Francis Daly
On Thu, Feb 20, 2014 at 02:01:22PM -0800, Felix Quintana wrote: Hi there, > >What http request do you make? > > https://localhost/web/app.php/asd/fgh > > >What file on your filesystem do you want to check the existence of? > >What file on your filesystem do you want to tell the fastcgi server t

Re: Check if the file exists.

2014-02-20 Thread Felix Quintana
>What http request do you make? https://localhost/web/app.php/asd/fgh >What file on your filesystem do you want to check the existence of? >What file on your filesystem do you want to tell the fastcgi server to process? d:\symfony\web\app.php >What nginx variables hold the names of the files you

Re: Check if the file exists.

2014-02-20 Thread Francis Daly
On Thu, Feb 20, 2014 at 01:34:10PM -0800, Felix Quintana wrote: Hi there, > I'm trying to check if the file exists before passing it to fastcgi but I > have not found as. > I've tried try_files but not find a way. > The file is of the form: > /web/app.php/asd/fgh?ert=xx What http request do yo

Check if the file exists.

2014-02-20 Thread Felix Quintana
I'm trying to check if the file exists before passing it to fastcgi but I have not found as. This is what I'm doing:             #if (!-f $document_root$fastcgi_script_name)             if (!-f $request_filename)                         {             return 404;             } I've tried try

Re: nginx.exe has encountered a problem and needs to close. (SSL)

2014-02-20 Thread Felix Quintana
It works well. thank you very much___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

post_action for specific requests only

2014-02-20 Thread ahurkala
Hi, i'm using post_action for remote logging. Logging all requests works great and efficient (4k req/s) but when I try to log only certain requests ngix becomes unstable (some connections hang and some weird errors occur). I've tried several ways to log specific requests only, but none of them work

Re: Translating apache config to nginx

2014-02-20 Thread Francis Daly
On Thu, Feb 20, 2014 at 05:58:05AM -0800, Grant wrote: Hi there, > >> location ~ ^(?!installer)(\.?[^\.]+)$ { > >> deny all; > >> } > > Alternatively: what request do you make? What response do you expect? And > > what is the regex above intended to do? > > I actually got these apache deny

Re: nginx.exe has encountered a problem and needs to close. (SSL)

2014-02-20 Thread itpp2012
You might try; ssl_session_cache builtin:4000; which seems to work ok as its processed inside openssl only. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,247795,247813#msg-247813 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.or

Combining nginx with a library that manages it's own threads?

2014-02-20 Thread Jan Algermissen
Hi, I would like to connect nginx to the Cassandra NoSQL database. There is a C++ library[1] that I could wrap to C to use with nginx. However, the library does it's own connection pooling and thread management and I do not really have an idea how that will interfere with nginx's (single)threa

Re: nginx.exe has encountered a problem and needs to close. (SSL)

2014-02-20 Thread Felix Quintana
Thank you very much. I commented the lines ssl_session_timeout and ssl_session_cache and now everything works fine.___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: nginx.exe has encountered a problem and needs to close. (SSL)

2014-02-20 Thread itpp2012
Felix Quintana Wrote: --- > I have configured the server to accept SSL connections and after two > or three requests always gives the error: > nginx.exe has encountered a problem and needs to close. [...] >     ssl_session_cache   shared:SSL:10m;

nginx.exe has encountered a problem and needs to close. (SSL)

2014-02-20 Thread Felix Quintana
I have configured the server to accept SSL connections and after two or three requests always gives the error: nginx.exe has encountered a problem and needs to close. Restart server does not work, the first request fails. Restart the computer let me make two or three requests without problems an

worker_connections are not enough while requesting certificate status

2014-02-20 Thread nginx user
I have seen errors in my logs: worker_connections are not enough while requesting certificate status I believe the main problem was that the worker_connections was set too low, and I've fixed that. However after looking at the source around the OCSP stapling, I have a question - It appears that

Re: Translating apache config to nginx

2014-02-20 Thread Grant
>> But this causes a 403 during normal operation: >> >> location ~ ^(?!installer)(\.?[^\.]+)$ { >> deny all; >> } >> >> Why is that happening? > > What requests do you want to match that location? > > What requests actually match that location? > > Alternatively: what request do you make? What

nginx location fine routing multiple backend

2014-02-20 Thread nenad
I neet to route requests to multiple backends, and I'm can't match all, what I have so far: ... root /srv/www; == below does what it should == location ~ /assets/(.+\.(?:gif|jpe?g|png|txt|html|css|eot|svg|ttf|woff|swf|js))$ { alias /srv/www2/$1; } ==> below should match only: /, /en, /

Re: Translating apache config to nginx

2014-02-20 Thread Francis Daly
On Wed, Feb 19, 2014 at 05:35:46AM -0800, Grant wrote: Hi there, > The following seems to work fine: > > location ~ > ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) > { > deny all; > } That's probably work until you add "location ^~ /oops{}" and re

Re: Minimal configuration

2014-02-20 Thread Francis Daly
On Mon, Feb 17, 2014 at 11:16:23PM +0100, B.R. wrote: Hi there, > Thanks for your help, Francis! You're welcome. > That's an amazingly detailed explanation. It is. But be aware: it is not actually correct. It covers some of the common cases, which may be good enough for you for now. > The di