Hi All, I'm setting up Nagios to run thorugh Nginx. I have the CGI wrapper working (yey). However, some nagios web based functions require access to a nagios command file (a pipe) in the nagios /var/rw directory. When the nagios service starts, it creates a "nagios.cmd" pipe file in the rw directory. When trying to access that web file through the web interface, there's a permissionby iberkner - Nginx Mailing List - English
I got it working, thanks! On Sun, Oct 3, 2010 at 7:06 AM, Julien Vehent <julien@linuxwall.info> wrote: > On Sun, 3 Oct 2010 00:59:34 -0400, Ilan Berkner <iberkner@gmail.com> > wrote: > > Hi All, > > > > I didn't realize that I needed a CGI wrapper for the nagios CGI scripts, > oops... > > > > found this article: > > > > > http://wby iberkner - Nginx Mailing List - English
Hi All, I didn't realize that I needed a CGI wrapper for the nagios CGI scripts, oops... found this article: http://www.matejunkie.com/howto-let-nginx-serve-the-nagios-web-interface/ Before I go this route, any better / easier suggestions / recommendations? _______________________________________________ nginx mailing list nginx@nginx.org http://nginx.org/mailman/listinfo/nginxby iberkner - Nginx Mailing List - English
Thank you all for your responses. I believe that the missing element in my case was: alias /usr/local/nagios/share/$1; in the nagios php processing location, I wasn't aware that I would have to specify it there as well, but it makes sense now. Thanks! On Sun, Oct 3, 2010 at 12:40 AM, Edho P Arief <edhoprima@gmail.com> wrote: > On Sun, Oct 3, 2010 at 11:31 AM, Ilan Berkner <iberknby iberkner - Nginx Mailing List - English
btw, when I change the same configuration to alias and try to access /nagios/, I get this error: 2010/10/03 00:36:06 7399#0: *6485 directory index of "/usr/local/nagios/share" is forbidden when I go to /nagios/index.php, I don't get an error in the log, but an error in the browser, that says: Oops! This link appears to be broken. On Sun, Oct 3, 2010 at 12:31 AM, Ilan Berkner <ibeby iberkner - Nginx Mailing List - English
Thank you for your suggestion, I remember the vigorous discussion that took place regarding this issue, in this particular case, this is a test / development system so I'm not as concerned as I normally would be. In our production environment, things are a bit more rigid. On Sat, Oct 2, 2010 at 9:29 PM, António P. P. Almeida <appa@perusio.net>wrote: > On 3 Out 2010 01h23 WEST, iberkby iberkner - Nginx Mailing List - English
Thanks for the advice. When I do it this way, I get an error (nginx error log): 2010/10/03 00:27:33 20239#0: *6447 "/usr/local/nagios/share/nagios/index.php" is not found (2: No such file or directory) so you can see that nginx is adding /nagios/ to the end of the root directory and so the file is not found (generating a 404 on the browser). What would be the correct way to addressby iberkner - Nginx Mailing List - English
Thanks, I tried it using "root" in the location, still no luck. Here's my config (the parts that matter), the location /nagios/ is what's not working. What am I doing wrong? Thanks http { root /var/www/html; server { listen 10.0.1.163; server_name dev.testsite.com; location /nagios/ { root /usr/local/nagios/share;by iberkner - Nginx Mailing List - English
we have a very simple configuration. server block with location block php is served through fastcgi and works fine would like to add something like this: location /nameofalias/ { alias /usr/local/nameofalias; } but it does not seem to work, static files load fine. the php location block is like this and works fine for the main location block of "location /" location ~ .by iberkner - Nginx Mailing List - English
No problem... we were all new one time, I'm still learning. How are you planning on serving php? Nginx by itself does not process scripts, simply passes the requests to a backend. Google: php-fpm (see php-fpm.org) or apache mod_php for example. Your nginx configuration file is called "nginx.conf" in it you specify how you want php to be served. On Fri, Oct 1, 2010 at 10:26 PM, <by iberkner - Nginx Mailing List - English
What is your nginx configuration? On Fri, Oct 1, 2010 at 10:14 PM, <bthreesix@gmail.com> wrote: > I set up a simple test.php on my server with > > <?php > phpinfo(); > ?> > > but it seems like when i browse to the file its being downloaded instead of > displayed in the browser window. does anyone know how i can fix this? > ________________________________by iberkner - Nginx Mailing List - English
You could profile your PHP application using xdebug (note it puts a load on the system of course), for a brief period and review the generated grind files to identify where php is getting stuck. 2010/9/29 Jérôme Loyet <ml@fatbsd.com> > you should monitor the number of active connections to your database. > > 2010/9/29 StefanitaRares Dumitrescu <themediaplanet90210@gmail.com&gby iberkner - Php-fpm Mailing List - English
Some more information regarding mysql: 1. DNS resolution, especially if you're connecting from more than 1 system. msyql attemps to resolve every connection host (forward and backwards) and if for some reason it fails, forget it. You're in lala land. We had this issue a few weeks back with a new application server, forgot to add it to the hosts file of the db. One option is to turn off DNS reby iberkner - Php-fpm Mailing List - English
Another possible issue with php and mysql is dns resolution. for every request, mysql has to do resolve the host name (forward and reverse), if that fails or takes a long time, things can definitely get ugly and php hangs waiting for responses, which eventually will return but really slowly and cause a backup. If DNS resolution is an issue, look into starting mysql with the --skip-name-resolve oby iberkner - Php-fpm Mailing List - English
We run a very highload site using Nginx and PHP 5.3.3 (with FPM) with eAccelerator. We are consistently at 5000+ connections, during peak, we've hit 7,000+. I'm always finding stability issues due to the high-load but usually can locate areas in the code base which cause PHP to hang or wait. In particular, check database queries. We've had to separate our data requests into a master->read oby iberkner - Php-fpm Mailing List - English
Our current configuration which uses php-fpm and nginx is causing timeout issues due to high load, we did have a server that failed this AM so that's part of the issue. In the meantime, where / how do I increase the upstream time out variable? is there anything else that I can be on the lookout for? 2010/09/01 12:32:12 8782#0: *58420 upstream timed out (110: Connection timed out) while connectiby iberkner - Nginx Mailing List - English
Yes, that revealed the cause I think that was set to 1024. Sent on the Sprint® Now Network from my BlackBerry® -----Original Message----- From: Scott Trudeau <scott.trudeau@gmail.com> Date: Mon, 30 Aug 2010 17:31:38 To: <nginx@nginx.org> Reply-To: nginx@nginx.org Subject: Re: too many open files _______________________________________________ nginx mailing list nginx@nginx.org hby iberkner - Nginx Mailing List - English
Our site is getting busy and we are now getting these errors: 2010/08/30 16:10:47 4729#0: accept() failed (24: Too many open files) I've already looked online in several places but am unclear about how to more clearly diagnose the problem and correct. Any help as always is greatly appreciated. Running: cat /proc/sys/fs/file-max yields: 800669 Running ulimit yields: unlimited Top of Nginxby iberkner - Nginx Mailing List - English
Hi, We have a small static CSV file which has been updated on the local nginx server. However, when the file is loaded, it is showing the old content. I'm trying to figure out how to clear the cache and came across this simple posting: http://nginx.2469901.n2.nabble.com/best-way-to-empty-nginx-cache-td3017271.html but how do I get the path to the cache? its not in the configuration file thatby iberkner - Nginx Mailing List - English
------Original Message------ From: Igor Sysoev To: nginx@nginx.org ReplyTo: nginx@nginx.org Subject: nginx-0.8.46 Sent: Jul 19, 2010 7:33 AM Changes with nginx 0.8.46 19 Jul 2010 *) Change: now the "proxy_no_cache", "fastcgi_no_cache", "uwsgi_no_cache", and "sÓgi_no_cache" directives affect on a cachedby iberkner - Nginx Mailing List - English
------Original Message------ From: Igor Sysoev To: nginx@nginx.org ReplyTo: nginx@nginx.org Subject: nginx-0.8.46 Sent: Jul 19, 2010 7:33 AM Changes with nginx 0.8.46 19 Jul 2010 *) Change: now the "proxy_no_cache", "fastcgi_no_cache", "uwsgi_no_cache", and "sÓgi_no_cache" directives affect on a cachedby iberkner - Nginx Mailing List - English
Maybe try to put the /medias/ location on top? On Thu, Jun 3, 2010 at 11:50 AM, Axel <junk@devignon.fr> wrote: > Hi guys, > > stupid but tricky question. In my "server" configuration, I added two > "location" directives: > > location ~* \.css|\.js|\.jpg|\.jpeg|\.png|\.gif|\.swf|\.svg|\.tiff$ { > expires 30d; > } > > location /medias/by iberkner - Nginx Mailing List - English
Worked like a charm, thanks! On Fri, May 21, 2010 at 9:53 AM, Ray <gunblad3@gmail.com> wrote: > Yes. > > server { > listen 80 default; > server_name www; > > location /robots.txt { > alias /path/to/the/file1; > } > } > > server { > listen 80; > server_name server2; > > location /robots.txt { > alias /patby iberkner - Nginx Mailing List - English
Hi All, We have 2 sub-domain groups setup for processing incoming requests: 1. "server2" 2. all others, for example: "www" The 2 sub-domains share the same directory for delivery of static files (html, images, swf, etc.) but use different PHP backends. Is there a way, using nginx configuration to load a different robots.txt file when requested for one group vs. the other?by iberkner - Nginx Mailing List - English
Thank you for that suggestions, I am looking at the Amazon S3 service as a possible solution but as part of our next development cycle. I'm not familiar with the proxy_store solution, I'll look at it. Thanks! On Tue, Jan 12, 2010 at 12:00 PM, Pavel Radaev <pradaev@gmail.com> wrote: > Hello. > > Try to use Amazon S3 service as an origin for your files and nginx > proxy_store fby iberkner - Php-fpm Mailing List - English
Hi All, Let me preface that I've asked a similar question before related to sharing of PHP code across servers. We finally opted for a synching solution using rsync and its working well. This question is slightly different. We are working on a new feature which will allow users to create audio (.mp3) files dynamically via our web interface. The resulting .mp3 file will be stored locally andby iberkner - Php-fpm Mailing List - English
This is probably the route I'm going to take... seems to be the most recommended one. Thanks! On Thu, Dec 24, 2009 at 12:37 PM, Jonathan Langevin <intel352@gmail.com>wrote: > For this situation, we set up one server to sync files on a regular basis, > from one server to the other. > Then we modify code only on one server, and it's automatically replicated > each morning and evby iberkner - Php-fpm Mailing List - English
Hi All, Currently we have a single application server, we are in the process of adding another one. There are 2 options: 1. Copy source code to new server and run code from there 2. Create a linked share to the source code on the new application server so that code is only updated in one place Thoughts / suggestions / recommendations? Thanksby iberkner - Php-fpm Mailing List - English
For example: IF (source IP address IN list of IP addresses) redirect to somepage.php.by iberkner - Nginx Mailing List - English
It just ocurred to me that this of course NOT a nginx question... sorry for the clutter. 2009/10/20 Igor Sysoev <is@rambler-co.ru> > On Tue, Oct 20, 2009 at 11:55:04AM -0400, Ilan Berkner wrote: > > > we are getting "A LOT" of requests from one particular IP address. I > turned > > on the access log to see what's what, and this is what I see repeatedly >by iberkner - Nginx Mailing List - English