On Thu, Apr 30, 2009 at 03:51:04PM -0700, Michael Shadle wrote: > i have this, which seemed like it would work according to my attempt > just a week ago... > > server { > listen 80; > index index.php index.html; > server_name ~^foo(.*?)\.bar\.ssgisp\.com$; > root /home/mike/web/foo$1; > include /etc/nginx/defaults.conf;by Igor Sysoev - Nginx Mailing List - English
On Fri, May 01, 2009 at 12:49:21AM +0200, Joe Bofh wrote: > Igor, > > Can you explain why it's better to use this format? Due to unbethought implementation "if" may work not so as you expect. Probably, the only natural usage is: if (...) { return 403; } and if (...) { rewrite ... last; } The following examplesby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 29, 2009 at 10:08:49AM -0400, lovewadhwa wrote: > Hi > > I m using nginx to configure ssl accelerator.Have specified the following in my configuration file to accomplish the same: > > upstream dev1.magazine.com{ > server dev1.magazine.com:8000; > } > > > server { > listen 443; > serveby Igor Sysoev - Nginx Mailing List - English
On Thu, Apr 30, 2009 at 06:28:16AM -0400, JacobSingh wrote: > Hello, > > I've been using nginx pretty successfully for awhile, and this problem started recently. I've got CentOS 5 and the nginx from yum (nginx/0.6.32). > > Here is my config: > > upstream search1.us_seach { > > server slave1.search1.xxxxxx.us:8080 weight=3 max_fails=40 fail_tby Igor Sysoev - Nginx Mailing List - English
On Thu, Apr 30, 2009 at 01:19:23AM -0400, sbwoodside wrote: > I just love nginx, just adopted it today, and wanted to show my appreciation by sharing something I really like but haven't seen in any of the configuration examples: collapsing multiple-line config blocks into one line. For example here is my config for one of my sites. Look how nice and short it is :-) > > > upstreby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 29, 2009 at 05:23:13PM -0700, Michael Shadle wrote: > isn't this the same then? > > server { > listen 80; > server_name _; > } > > server { > listen 80 default; > } > > if you only had one of those in your config, the fallbacks would occur > to those blocks, if they did not match any others though, right? > > obviouslyby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 11:40:03PM -0700, Payam Chychi wrote: > 2009/4/28 Igor Sysoev <is@rambler-co.ru>: > > On Tue, Apr 28, 2009 at 07:27:00PM -0700, Payam Chychi wrote: > > > >> hey guys, > >> > >> So I had 3 sites configured to use caching on my nginx box (tried with > >> .50, 52 and 53 build) however of the three websites keptby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 02:20:32PM -0700, Cliff Wells wrote: > On Tue, 2009-04-28 at 16:45 -0400, Timothy Ball wrote: > > still sorta confused about running those two together. my end goal is > > to have simple urls like: > > > > wiki.something.com/TheArticleThingie > > > > right now under my current configs i get urls that look like this: >by Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 04:45:17PM -0400, Timothy Ball wrote: > still sorta confused about running those two together. my end goal is > to have simple urls like: > > wiki.something.com/TheArticleThingie > > right now under my current configs i get urls that look like this: > > wiki.something.com/index.php/TheArticleThingie > > which is *very closby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 07:27:00PM -0700, Payam Chychi wrote: > hey guys, > > So I had 3 sites configured to use caching on my nginx box (tried with > .50, 52 and 53 build) however of the three websites kept redirecting > me to the first site that I was doing caching for. > > Example Sites: > 0.0.0.1 > 0.0.0.2 > 0.0.0.3 > > HTTP config very simiby Igor Sysoev - Nginx Mailing List - English
On Wed, Apr 29, 2009 at 02:03:06AM +0200, J?r?me Loyet wrote: > Le 28 avril 2009 23:09, J?r?me Loyet <jerome@loyet.net> a ?crit : > > Hi Igor, > > > > since 0.7.48 and the fact that headers like Expires or Cache-Control > > are take into account ... I'm not able to cache everything. If the > > backend set a Expires header in the past, then the page isby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 08:32:16AM -0700, Michael Shadle wrote: > 2009/4/28 Igor Sysoev <is@rambler-co.ru>: > > On Tue, Apr 28, 2009 at 08:16:01AM -0700, Michael Shadle wrote: > > > >> On Tue, Apr 28, 2009 at 1:23 AM, Maxim Dounin <mdounin@mdounin.ru> wrote: > >> > >> > If you want to minimize downtime - you should follow binary >by Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 08:16:01AM -0700, Michael Shadle wrote: > On Tue, Apr 28, 2009 at 1:23 AM, Maxim Dounin <mdounin@mdounin.ru> wrote: > > > If you want to minimize downtime - you should follow binary > > upgrade procedure as described here: > > > > http://wiki.nginx.org/NginxCommandLine > > > > This gives you zero downtime (i.e. no sby Igor Sysoev - Nginx Mailing List - English
On Mon, Apr 27, 2009 at 10:40:37PM -0400, Floren Munteanu wrote: > Hi all, > > I upgraded this morning to 0.7.53 version, thanks Igor. I have an issue > with the port_in_redirect set to off, it would not hide the actual port. > I run nginx on a CentOS 5.3 x64 machine, no apache installed or other > fancy software beside PHP 5.2.9 and MySQL 5.1.33. It is set as a > prby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 11:10:17AM +0200, Chris Wan wrote: > diogin wrote: > > I checked netstat -an, and here are the results: > > > > TCP 0.0.0.0:83 0.0.0.0:0 LISTENING > > TCP 0.0.0.0:83 0.0.0.0:0 LISTENING > > > > It seems the two worker processes both try to listen on the same socket,by Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 09:31:46AM +0200, Joe Bofh wrote: > Is there now a preferred way to install a new binary and restart nginx > given the new options available? > > I just tried installing 0.7.53 and it appears the nginx init script does > not like restarting after a new binary has been installed. > > So as of now, I have to do this > > /etc/init.d/ngby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 08:40:13AM +0200, Chris Wan wrote: > Igor Sysoev wrote: > > Changes with nginx 0.7.53 27 Apr > > 2009 > > > > *) Change: now a log set by --error-log-path is created from the > > very > > start-up. > > ... > > could you add this feature: run nginx as a windowby Igor Sysoev - Nginx Mailing List - English
On Mon, Apr 27, 2009 at 11:36:22PM +0700, Edho P Arief wrote: > I've tried and unless I missed something, it doesn't look trivial. > Is there switch for amd64 somewhere in configure or environment variables? > > using > > # CC="/opt/SSX0903/bin/cc -m64" ./configure --prefix=/usr/local/nginx > > doesn't work immediately because it still uses x86 filesby Igor Sysoev - Nginx Mailing List - English
On Mon, Apr 27, 2009 at 09:56:40PM -0700, Michael Shadle wrote: > what is the difference between "stop" and "quit" "stop" sends -TERM and nginx exits immediately. "quit" sends -QUIT and nginx exits gracefully. Probably, it should be called "shutdown". > i assume "reopen" is to reopen logfiles, and "reload" is grby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 01:02:50PM +0800, Jeffrey 'jf' Lim wrote: > 2009/4/28 Igor Sysoev <is@rambler-co.ru>: > > On Tue, Apr 28, 2009 at 12:42:41PM +0800, Jeffrey 'jf' Lim wrote: > >> > >> So my 2 questions: > >> - what's wrong? I have my 'timer_resolution' in http { }. I believe > >> this is correct. Looking at the source, this should beby Igor Sysoev - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 12:42:41PM +0800, Jeffrey 'jf' Lim wrote: > as per subject, I'm trying to set timer_resolution in my nginx.conf > file - but to no avail. When i do an "nginx -t", I get the "unknown > directive" error message - despite the fact that this should be a > known directive (see > http://wiki.nginx.org/NginxHttpMainModule#timer_resolution)by Igor Sysoev - Nginx Mailing List - English
On Mon, Apr 27, 2009 at 10:14:41PM -0400, zhijianpeng wrote: > Igor Sysoev Wrote: > ------------------------------------------------------- > > On Mon, Apr 27, 2009 at 09:50:27AM -0400, > > zhijianpeng wrote: > > > > > ========my nginx.conf=========== > > > server { > > > > > > listen > >by Igor Sysoev - Nginx Mailing List - English
On Mon, Apr 27, 2009 at 06:49:17PM -0700, Michael Shadle wrote: > On Mon, Apr 27, 2009 at 6:32 PM, Maxim Dounin <mdounin@mdounin.ru> wrote: > > >by Igor Sysoev - Nginx Mailing List - English
On Mon, Apr 27, 2009 at 09:50:27AM -0400, zhijianpeng wrote: > ========my nginx.conf=========== > server { > > listen 10.1.1.1:80; > server_name www.test1.com; > root /opt/test1; > } > > server { > > listen 80; > serverby Igor Sysoev - Nginx Mailing List - English
Changes with nginx 0.7.53 27 Apr 2009 *) 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_log and stderr. *) Feature: the empty --prefix= configure parameter forces nginx to use a directory where it was run asby Igor Sysoev - Nginx Mailing List - English
On Sat, Apr 25, 2009 at 06:35:49PM +0300, Andrius Semionovas wrote: > my configuration is: > > server { > listen 80; > server_name www.domain.com main.domain.com test.domain.com > hight.domain.com; > > if ($host = 'www.domain.com') { > root /www/server; > access_log logs/www.domain.com.log main; > } > if ($host = 'main.domainby Igor Sysoev - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 01:06:20PM -0500, Resicow wrote: > Thanks Igor, > > Just want to confirm that the proxy_cache zone can be the same, so we > can set different proxy_cache_valid 200 values for keys in the same > proxy_cache zone? Yes, proxy_cache zone can be the same. > Thanks > > John > > > > > > > > Igor Sysoby Igor Sysoev - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 06:43:25PM +0200, J?r?me Loyet wrote: > no options: > > ./configure > make > make install > > 2009/4/24 Igor Sysoev <is@rambler-co.ru>: > > On Fri, Apr 24, 2009 at 05:58:43PM +0200, J?r?me Loyet wrote: > > > >> > http://sysoev.ru/tmp/patch.0.7.52.2.prefix > >> > >> Still the same problem:by Igor Sysoev - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 05:58:43PM +0200, J?r?me Loyet wrote: > 2009/4/24 Igor Sysoev <is@rambler-co.ru>: > > 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 -pby Igor Sysoev - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 05:58:43PM +0200, J?r?me Loyet wrote: > > http://sysoev.ru/tmp/patch.0.7.52.2.prefix > > Still the same problem: > > root@wild:~/nginx-0.7.52# (cd /tmp && /usr/local/nginx/sbin/nginx) > : could not open error log file: open() "/logs/error.log" > failed (2: No such file or directory) > > Why does NGX_PREFIX is setby Igor Sysoev - Nginx Mailing List - English