I need some help with creating a rewrite rule for a virtual host on my nginx server. I'm not very familiar with rewrite rules, so I'm hoping someone can help...if its even possible. Basically, I have a script that works like a file explorer that offers downloads and I want to do a rewrite rule to pull a PHP page that serves an ad and will start the download within 10-15 seconds. After thinkby mindfrost82 - Nginx Mailing List - English
I have a nginx server setup and everything is working fine. I have a virtual server setup which allows directory listing (autoindex on;). It appears to truncate the file names at around 50 characters. Is it possible to disable this so that it will show the entire filename? Or is there a way to increase it to say 100 or 150 characters? Thanks!by mindfrost82 - Nginx Mailing List - English
I have nginx setup with PHP as FastCGI. On my server, I have a couple of upload (writeable) directories and I want to disable nginx/php from serving php files in those directories (and all subdirectories). I've tried creating some location rules in nginx, but I can't seem to get it working. For example, if I have /public_html/uploads Then I have /usr1, /usr2, /usr3, etc as subdirectoriby mindfrost82 - Nginx Mailing List - English
Piotr Sikora Wrote: ------------------------------------------------------- > > So its almost like the requests are being held > up somewhere for 5-10 > > seconds and nginx resources goes down because > its not actually getting the > > requests. Any idea if this is possible and what > the cause would be? > > Check debug logs, they've got timestamps, soby mindfrost82 - Nginx Mailing List - English
Piotr Sikora Wrote: ------------------------------------------------------- > > I usually leave my error_log to crit only, but I > did turn it on debug > > today. There's nothing out of the ordinary > going on in the logs whenever > > this happens. It'll show normal KeepAlive > connections closed, or > > connection to upstream closed by client, etc. &by mindfrost82 - Nginx Mailing List - English
A couple of months ago I posted a topic because I thought my php-cgi processes were recycling too often (you can view it here http://forum.nginx.org/read.php?2,45516). After trying to troubleshoot this issue for months and not getting anywhere, I now think its nginx that is stalling or recycling, not php-cgi. I test this with a static html page and kept refreshing it. At the same time my vbulleby mindfrost82 - Nginx Mailing List - English
My nginx server has crashed about 4 times over the past 2 days. MySQL, php-cgi, etc continues to run, just the nginx server itself crashes. When I look in the nginx error logs, I see this line when it crashes: sigtimedwait() failed (4: Interrupted system call) Any ideas what this is? I tried searching Google and it came up with a couple foreign sites, so it doesn't seem to be a common issby mindfrost82 - Nginx Mailing List - English
I'm running Red Hat Enterprise using PHP 5.2.10 that was compiled using EasyApache (before the switch to nginx).by mindfrost82 - Nginx Mailing List - English
So I have tried a few more different things and php-cgi is still recycling way too often in my opinion. I tried the earlier suggestion of using 16 children (instead of 4) with 4096 max requests. It does appear that the max requests is getting ignored completely, as Rob said. With 16 children, the site is MUCH faster, but php-cgi is getting recycled about every minute still. The reason I thinby mindfrost82 - Nginx Mailing List - English
merlin corey Wrote: ------------------------------------------------------- > On Mon, Jan 25, 2010 at 11:17 AM, mindfrost82 > wrote: > > I run a fairly busy site with a Wordpress blog > and vBulletin forums. I recently dumped Apache > and and using nginx for everything (which has been > incredible and I would never go back). I'm using > PHP as fastCGI and haveby mindfrost82 - Nginx Mailing List - English
I'm not using php-fpm and don't really want to recompile PHP to switch to it. This is the only issue I have with this setup, so any help is appreciated. I tried taking out the PHP_FCGI_MAX_REQUESTS option altogether and it still recycled itself.by mindfrost82 - How to...
I run a fairly busy site with a Wordpress blog and vBulletin forums. I recently dumped Apache and and using nginx for everything (which has been incredible and I would never go back). I'm using PHP as fastCGI and have a wrapper script to start the process. We average about 1,000 concurrent users at any given time. Usually anywhere from 800 to 1200+. This is the script I found to start php-cby mindfrost82 - Nginx Mailing List - English
I run a fairly busy site with a Wordpress blog and vBulletin forums. I recently dumped Apache and and using nginx for everything (which has been incredible and I would never go back). I'm using PHP as fastCGI and have a wrapper script to start the process. We average about 1,000 concurrent users at any given time. Usually anywhere from 800 to 1200+. This is the script I found to start php-cby mindfrost82 - How to...