On Fri, Apr 24, 2009 at 05:36:31PM +0200, Lee Wilson wrote: > Hello, > > I am wondering if anyone could help me convert this .htaccess file to > NGINX. I have attempted to look for solutions on the internet but > cannot seem to solve the problem. > > RewriteEngine On > RewriteBase / > RewriteCond %{REQUEST_FILENAME} !-d > RewriteCond %{REQUEST_FILENAME}by Igor Sysoev - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 08:44:36AM -0500, AMP Admin wrote: > Sorry for a simple question but I'm just not that good at regex and nginx > yet. Can someone help me convert the .htaccess rewrite to nginx? > > RewriteRule ^(*-(f|all)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ > page.php/$1 > RewriteRule ^(*-(t|p)[0-9]+(p[0-9]+|/index[0-9]*)?\.html)$ > page.php/$1 > Rewby Igor Sysoev - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 02:43:43PM +0200, J?r?me Loyet wrote: > here the test I made: > #tar -xzvf nginx-0.7.52.tar.gz > # cd nginx-0.7.52 > # patch -p0 < ../patch.0.7.52.1.prefix > # patch -p0 < ../patch.gnu_strerror_r > #./configure > #make && make install > # (cd /tmp && /usr/local/nginx/sbin/nginx) > : could not open error log file: oby Igor Sysoev - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 12:27:53PM +0400, Maxim Dounin wrote: > Hello! > > On Fri, Apr 24, 2009 at 10:06:44AM +0200, Simon L??caille wrote: > > > When authenticate mechanism such as apop or cram-md5 are used, the > > Auth-Method header sent to backend mismatch the auth method used. > > [...] > > > Actually the array ngx_mail_auth_http_methodby Igor Sysoev - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 09:48:52AM +0200, J?r?me Loyet wrote: > 2009/4/24 Igor Sysoev : > > On Fri, Apr 24, 2009 at 08:35:58AM +0200, J?r?me Loyet wrote: > > > >> >> # (cd /tmp && strace -e open /usr/local/nginx/sbin/nginx -p /root/test/nginx/) > >> >> : could not open error log file: open() "logs/error.log" failed (2: ) > &by Igor Sysoev - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 08:35:58AM +0200, J?r?me Loyet wrote: > >> # (cd /tmp && strace -e open /usr/local/nginx/sbin/nginx -p /root/test/nginx/) > >> : could not open error log file: open() "logs/error.log" failed (2: ) > >> > >> It seems there is a bug with the default error_log and/or the prefix. > > > > A new version, thby Igor Sysoev - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 12:25:09AM +0200, J?r?me Loyet wrote: > > Hi igor, > > > > in order to compile the patch version, I had to modify the patch > > because it tried to patch auto/configure. The configure is in the root > > directory, not in auto. Or I misunderstood something ? > > > > Then I didn't understand how the -p option works. I made thby Igor Sysoev - Nginx Mailing List - English
Future even today: http://sysoev.ru/tmp/patch.0.7.52.prefix There are many changes related to the "-p prefix" switch support and the start up error logging and I want to test them before release. *) Change: now a log set by --error-log-path is created from the very start up. *) Feature: now the start up errors and warnings are outputted to an error_loby Igor Sysoev - Nginx Mailing List - English
On Thu, Apr 23, 2009 at 12:27:46PM -0500, Resicow wrote: > Hello Community, > > Is it possible to assign different proxy_cache_valid values for > different file extensions? So for example .jpg could live in the cache > for 7 days, but .js files would only live for 6 hours? > > I guess you could do this with multiple location directives, just don't > know exacby Igor Sysoev - Nginx Mailing List - English
On Thu, Apr 23, 2009 at 02:07:09PM +0200, Paul wrote: > Hi, > > I don't know if Igor Sysoev is aware of this: > > When running nginx in debug mode (I was debugging a custom module for nginx > in gdb): > master_process off; > daemon off; > Nginx breaks down when sending a HUP signal (reload configuration), it just > closes the connections after they wereby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 02:12:15PM -0400, r wrote: > Hello, > > Thanks for the quick answer. > > Well, I'm sure nothing is running on those port (except the same nginx on the IPv4 address with a "listen 80" entry). But you managed to make me find the real bug! > > I made two configuration files with the same entries but each one has different listen entrby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 10:47:50AM -0500, AMP Admin wrote: > Thanks for all of your replies! > > One more question... how do I check the response sizes? In access_log or in browser info page. > -----Original Message----- > From: owner-nginx@sysoev.ru On Behalf Of Igor > Sysoev > Sent: Wednesday, April 22, 2009 9:46 AM > To: nginx@sysoev.ru > Subject: Rby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 09:39:22AM -0500, AMP Admin wrote: > Maybe a stupid question but how do I figure out what size they should be set > at? > > I saw this on the following on the web. Do you think it will work for me? > > location ~ \.php$ { > fastcgi_buffer_size 32k; > fastcgi_buffers 4 32k; > ... >by Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 08:53:18AM -0500, AMP Admin wrote: > I thought the proxy settings where for transferring requests to other > servers. This is the only server so we don't use the proxy module. Sorry, I did not notice the line "fastcgi://127.0.0.1:9000". Then you need to tune fastcgi_buffer_size and fastcgi_buffers. These directives are similar to the proxy_ ones.by Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 05:37:41AM +0200, Chris Wan wrote: > Hi, I try to run windows nginx , but I find a bug when I change > nginx.conf "worker_processes 4;" > error_log have much message like " " 4168#5612: select() failed > (10022: ?????????????????????????????????) " > and the error_log file change very big, and half hour after, the file >by Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 09:33:32AM +0200, Joe Bofh wrote: > So, can I use both or does one override the other and I should just use > "open_file_cache" instead. You can use both. open_log_file_cache is just for access log files given using variables. open_file_cache is for all other operations. > --J > > Igor Sysoev wrote: > > On Wed, Apr 22, 2009 atby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 21, 2009 at 07:42:16PM -0700, Chris Cortese wrote: > I found that increasing the # of worker_connections to 64 makes it so I > no longer get 500 Internal Server Error, and I'm back to "No input file > specified." > > In the error log I see stuff like this: > 2009/04/21 19:40:00 4532#4596: select event fd:168 ev:0 is > already set while accepby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 08:09:30AM -0400, diogin wrote: > Igor Sysoev Wrote: > ------------------------------------------------------- > > On Wed, Apr 22, 2009 at 02:47:01AM -0400, diogin > > wrote: > > > > Currently - yes. Probabaly, in next versions I > > will remove prefix at all > > and nginx will get nginx.conf from the current > > diby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 21, 2009 at 04:34:49PM -0700, Chris Cortese wrote: > Just to clarify: > > I'm really wanting to try Igor's latest 0.7.52 native Windows build. > Ignore the part about "cygwin" being part of the pathname. > But there is history for why "cygwin" is in my path at all: > > 1. I first was trying the cygwin build from the link out thereby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 21, 2009 at 01:51:07PM -0700, Payam Chychi wrote: > 2009/4/21 Igor Sysoev <is@rambler-co.ru>: > > On Tue, Apr 21, 2009 at 12:41:16PM -0700, Payam Chychi wrote: > > > >> hey guys, > >> > >> what is the main difference between these two? reading the > >> documentation it looks like both set the ip address of the client onby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 21, 2009 at 04:00:06PM -0500, AMP Admin wrote: > Is that for multiple servers? Nginx is the only webserver on this box... > it's nginx, xcach, php-fmp, php, and mysql. I do not understand the question about multiple servers. > -----Original Message----- > From: owner-nginx@sysoev.ru On Behalf Of Igor > Sysoev > Sent: Tuesday, April 21, 2009 3:35 PM &gby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 01:22:52AM +0200, Joe Bofh wrote: > > FWIW, I got a follow up reply from Austin (the chap that created > murmurhash). He sez: > > "MurmurHash2, MD5, Lookup3, and any cryptographic hash all have > statistically-correct collision behaviour - the average number of > collisions they create on a given keyset is the same as if the hash &gby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 21, 2009 at 07:10:41PM -0500, Resicow wrote: > Hello, > > Have a quick question for you. > > Is it possible for proxy_temp_path and proxy_cache_path to be on > separate volumes? > > It seems like nginx accepts this, however when I tried nginx would make > the folders necessary in proxy_cache_path, but wouldn't ever copy files > from the tby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 12:01:04PM +0800, Weibin Yao wrote: > > Could you add > > > open_file_cache max=1000 inactive=20s; > > open_file_cache_valid 30s; > > open_file_cache_min_uses 2; > > open_file_cache_errors on; > > > and run just > > > ab.exe -k -n 10000 -c 1 > > > to see if CreateFile() adds noticeaby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 12:58:30AM +0200, Joe Bofh wrote: > Igor, > > I do not see the open_file_cache directive documented on the wiki. Is > this different from "open_log_file_cache" which is documented? If not, > what is the difference... It's similar to open_log_file_cache, but have additional directive: open_file_cache_errors ; # default is off whicby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 02:47:01AM -0400, diogin wrote: > Is windows binary unable to customize installation path? The only path is C:/nginx ? Currently - yes. Probabaly, in next versions I will remove prefix at all and nginx will get nginx.conf from the current directory. Right now you may set full path in nginx.conf and run nginx as nginx -c d:/nginx1/nginx.conf To control youby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 21, 2009 at 06:38:13PM -0400, Jonathan Vanasco wrote: > > On Apr 21, 2009, at 4:31 PM, Igor Sysoev wrote: > > >Build nginx with debug log, then grep the lines: > > > >test location: "...." > >test location: "...." > >test location: "...." > >test location: "...." > >using configuratby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 09:56:37AM +0800, Delta Yeh wrote: > 2009/4/22 Igor Sysoev <is@rambler-co.ru> > > > On Tue, Apr 21, 2009 at 04:43:05PM +0200, Roger Pack wrote: > > > > > > Nginx server in front could take care of. I'd rather see something like > > > > Libevent (i.e. an asynchronous HTTP server engine) with embedded > > Python.by Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 22, 2009 at 11:12:39AM +0800, Weibin Yao wrote: > > Could you add > > > open_file_cache max=1000 inactive=20s; > > open_file_cache_valid 30s; > > open_file_cache_min_uses 2; > > open_file_cache_errors on; > > > and run just > > > ab.exe -k -n 10000 -c 1 > > > to see if CreateFile() adds noticeaby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 21, 2009 at 07:17:23PM -0400, r wrote: > Hello, > > I tried to bind nginx to an IPv6 address but impossible... I got the following error: > > > 2009/04/22 00:57:08 21264#0: bind() to [::]:80 failed (98: ) > > > I'm not sure if nginx really supports IPv6, I just tested the --with-ipv6 switch for compilation regarding this thread : http://articby Igor Sysoev - Nginx Mailing List - English