Hello, I'm looking into porting some apache-like rewrite rules. Here they are: RewriteEngine on RewriteRule [^/]+/([\d]+)-.+-([\d]+).html showthread.php?t=$1&page=$2 RewriteRule [^/]+/([\d]+)-.+.html showthread.php?t=$1 Appreciate any help. Regards, diegoby wminside - How to...
I've seen it both ways. This is exactly what I'm doing location ~* \.(ico|css|js|gif|jpeg|png)$ { expires max; } Does anyone know what would be the difference if I don't use *? Edited: http://wiki.nginx.org/NginxHttpCoreModule#location :)by wminside - Other discussion
I'm running APC cache and I have 8 workers on my nginx.conf. I've read on a bunch of sites than you shouldn't use an opcode cache if you have more that one worker unless you "know exactly what you are doing". I don't quite understand it. Is it alright to run an opcode cache?by wminside - How to...
I believe you should tweak PHP_FCGI_MAX_REQUESTS. You can try 5000 for instance. In order to get this working you need to kill all (stop nginx, pcp_cgi and killall nginx, the same with php_cgi or whatever you called the init.d script) the processes running and start php_cgi and nginx again. I'm saying this because I just read your other thread where it does nothing PHP_FCGI_MAX_REQUESTS on your seby wminside - Nginx Mailing List - English
Hi Jim, I had already set up 8 workers after much reading yesterday. But I didn't set the number of worker_connections so that was helpful. You are right about the max open file descriptors in CentOS. Yesterday I changed it to 8192 but after setting nginx's connections to 4096 just now I updated it to ulimit -n 32768 (4096*8). Is this right? Also how do I know that I have set the right nuby wminside - How to...
My access_log file is getting HUGE by the second! I've spent the last couple of hours reading docs and access_log off does not work for me. I've tried to put it everywhere. I've tried everything. I'm also looking for performance so /dev/null probably wont do the trick. I'm running nginx-0.6.39-2.el5 on CentOS 5.4 My nginx.conf ##############################################################by wminside - How to...
Hello, I'm about to give NGINX a try. I've done some testing on a local CentOS box but nothing too heavy yet. The website I'll be migrating to NGINX is fairly big -over 150k uniques per day. I run mysqld on another server. My box CPU: 2x INTEL XEON NEHALEM E5504. Ram: 4GB. I was wondering how many worker processes / worker connections should I set the configuration file to.by wminside - How to...