you should add in the config file checks using-t like cliff has with his redhat script (was it cliff?) that's an awesome feature. if it fails config check it wont reload or restart etc. On Wed, Apr 29, 2009 at 4:15 PM, Jauder Ho <lists@ruby-forum.com> wrote: > > FWIW, I updated my init script for nginx to be able to do upgrades.. > > http://bit.ly/2j0aH > >by mike - Nginx Mailing List - English
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? obviously mixing them would prefer the listen 80 default; i assume? 2009/4/29 Maxim Dounin <mdounin@mdounin.ru>: > Hello! > > On Weby mike - Nginx Mailing List - English
On Wed, Apr 29, 2009 at 3:01 PM, Maxim Dounin <mdounin@mdounin.ru> wrote: > It MUST per RFC2616. There is no difference between > > GET http://example.com/ HTTP/1.1 > Host: ignored > > and > > GET / HTTP/1.1 > Host: example.com > > See RFC2616 for details (5.2 The Resource Identified by a Request). Okay, I see - so it is serving up HTTP 200by mike - Nginx Mailing List - English
This is not really a 'bug' I think, but it is something that raises a security flag, we got dinged on it. Now, it does not appear to actually execute the proxy request, but it should return something other than HTTP 200. $ telnet test.foo.org 80 Trying 1.2.3.4... Connected to test.foo.org. Escape character is '^]'. GET http://xmike.com HTTP/1.1 Host: xmike.com HTTP/1.1 200 OK Serverby mike - Nginx Mailing List - English
On Wed, Apr 29, 2009 at 2:09 AM, Matteo Redaelli <lists@ruby-forum.com> wrote: > Ciao > > It would be very useful for intranet web applications to have a Kerberos > Authentication module like the one for apache httpd > (http://modauthkerb.sourceforge.net/) and the lighttpd one > (http://redmine.lighttpd.net/issues/1899). > > Has enyone already implemented it?by mike - Nginx Mailing List - English
On Tue, Apr 28, 2009 at 1:45 PM, Timothy Ball <timball@gmail.com> 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 isby mike - Nginx Mailing List - English
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 >> > upgrade procedure as described here: >> > >> > http://wiki.nginx.oby mike - Nginx Mailing List - English
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 single client request > missed). interesting. so find the master pid kill -USR2 $pid kill -WINby mike - Nginx Mailing List - English
i've always had to killall -9 nginx ; /etc/init.d/nginx start after a recompile. i did not have to stop nginx before make install though On Tue, Apr 28, 2009 at 12:31 AM, Joe Bofh <lists@ruby-forum.com> 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 aby mike - Nginx Mailing List - English
2009/4/27 Igor Sysoev <is@rambler-co.ru>: > I will think, I believe that restart is not good idea at all. Are there not special cases where it makes sense? It would essentially be a -TERM and then a start (maybe after a brief pause to clear any sockets/whatever is still open)by mike - Nginx Mailing List - English
what is the difference between "stop" and "quit" i assume "reopen" is to reopen logfiles, and "reload" is graceful reloading you should add in a restart as well (forceful restart) 2009/4/27 Igor Sysoev <is@rambler-co.ru>: > On Mon, Apr 27, 2009 at 06:49:17PM -0700, Michael Shadle wrote: > >> On Mon, Apr 27, 2009 at 6:32 PM, Maxiby mike - Nginx Mailing List - English
On Mon, Apr 27, 2009 at 6:32 PM, Maxim Dounin <mdounin@mdounin.ru> wrote: > -s signal : send signal to a master process: stop, quit, reopen, reload so -s will find the master process somehow? does it use the pid file defined in nginx.conf, or the default pid file location built in to the binary? or some other magic?by mike - Nginx Mailing List - English
On Fri, Apr 24, 2009 at 8:26 AM, Smatchimo <nginx-forum@nginx.us> wrote: > Does anyone know of any addons to nginx that would let it do content checks to determine if an upstream server is alive or not, i.e. check a certain page for a given string? > > We are hoping to replace a lot of old ldirectord load balancers but this is a feature we really need to have. All too often a webby mike - Nginx Mailing List - English
On Fri, Apr 17, 2009 at 6:16 AM, Edho P Arief <edhoprima@gmail.com> wrote: >> I compiled php 5.2.9 with the php 5.2.8 fpm patch, and --with-mcrypt. >> >> This is all on cygwin, using mostly the following thread but with a >> couple slightly newer versions of things: i'm using mcrypt just fine under 5.2.9 (on linux though :)) so i don't believe it's the patchby mike - Php-fpm Mailing List - English
fastcgi_intercept_errors on; currently only takes effect if you have explicitly defined error_page's. can it fall back to nginx default error pages? that was the behavior i had expected in the past. i don't see why it shouldn't. thanks.by mike - Nginx Mailing List - English
i think knowing that is in that conf may be relevant. On Tue, Apr 21, 2009 at 5:49 PM, Jonathan Vanasco <jonathan@2xlp.com> wrote: > > On Apr 21, 2009, at 6:59 PM, Michael Shadle wrote: > >> you forgot to include what your php.conf or whatever it was says > > > michael- > > the problem is that PHP isn't invoked with this regex location > >by mike - Nginx Mailing List - English
you forgot to include what your php.conf or whatever it was says On Tue, Apr 21, 2009 at 3:38 PM, Jonathan Vanasco <nginx@2xlp.com> 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: "by mike - Nginx Mailing List - English
2009/4/21 Igor Sysoev <is@rambler-co.ru>: > No, you should not allow to override client address from all. > Just from frontends: > > set_real_ip_from fb-ip1; > set_real_ip_from fb-ip2; Yeah that's what I said - it was a bit roundabout. "only trust the header from your load balancer etc, w hich you probably want to do, set the netmask appropriately" :)by mike - Nginx Mailing List - English
make sure nginx has the "realip" module (nginx -V, look for --with-http_realip_module) - you could try it and run nginx -t to check the conf file to see if it's in your compile too. Double check the header isn't a different case like X-FB-User-Remote-Addr or something (if you saw this in PHP it would be capitalized, but also prefixed with SERVER so maybe it is always capped) Lby mike - Nginx Mailing List - English
On Fri, Apr 17, 2009 at 3:32 AM, Gabriel Ramuglia <gabe@vtunnel.com> wrote: > I've used spread for centralized logging before, it's a horrible > clusterF. If you want details as to why, let me know. no thanks. i have no experience with it and i don't really need something like it right now (hopefully i'd use gearman, as i talk with the main guy behind it a lot now) - it's not aby mike - Nginx Mailing List - English
if just looking for some sort of distribution you could put stuff into memcached, mysql cluster, look at spread toolkit (spread.org i believe) and gearman... On Thu, Apr 16, 2009 at 8:55 PM, W. Andrew Loe III <andrew@andrewloe.com> wrote: > I'm by no means a splunk expert, you should ask them, but I think it > scales pretty well. You can use multiple masters to receive and >by mike - Nginx Mailing List - English
On Thu, Apr 16, 2009 at 9:34 AM, Valery Kholodkov <valery+nginxen@grid.net.ru> wrote: > Regardless of the fact, that tracker returns path to the host with least load, it would be worth to try secondary locations, since there could some network configuration or routing issue suddenly appear. exactly - that's why it should be an nginx upstream {} construct probably; and your mogilefby mike - Nginx Mailing List - English
On Thu, Apr 16, 2009 at 9:05 AM, Michael Shadle <mike503@gmail.com> wrote: > There should be no need for multiple $mogilefs_path's as the tracker > supplies the locations that nginx should be proxying to... which probably means something like: location /mogilefs { mogilefs_tracker ... mogilefs_pass $mogilefs_url; <- this would be an array/list of urlby mike - Nginx Mailing List - English
On Thu, Apr 16, 2009 at 5:49 AM, Valery Kholodkov <valery+nginxen@grid.net.ru> wrote: >> 2. As far as I see it uses only first path returned by mogilefs. >> Is it planned to support failover? From my understanding it >> should be simple, something like >> >> location /mogilefs { >> mogilefs_tracker ... >> mogby mike - Nginx Mailing List - English
On Wed, Apr 15, 2009 at 3:21 PM, Maxim Dounin <mdounin@mdounin.ru> wrote: > Hello! > > On Wed, Apr 15, 2009 at 10:19:18PM +0200, mates007@centrum.cz wrote: > >> Hi, >> is there a way to let users without access to nginx configuration set rewrite rules? Something like .htaccess in apache with AllowOverride option, without need to reload server configuration. >by mike - Nginx Mailing List - English
this would be a neat feature and i could possibly leverage it too, depending on how fast nginx's xsl transforms work. i assume pretty fast. :) On Wed, Apr 15, 2009 at 10:10 AM, Michael Nachbaur <mike@nachbaur.com> wrote: > I'm developing a web application that makes heavy use of nginx's XSLT > support (Thank you for that!) About half of the content is in static XML > filesby mike - Nginx Mailing List - English
On Wed, Apr 15, 2009 at 7:06 AM, Dave Cheney <dave@cheney.net> wrote: > What about > > cat *.log | sort -k 4 or just cat *whatever.log >today.log I assume the processing script can handle out-of-order requests. but I guess that might be an arrogant assumption. :) I do basically the same thing igor does, but would love to simplify it by just having Host: headerby mike - Nginx Mailing List - English
2009/4/14 Xia Qingran <qingran.xia@gmail.com>: > Hi, > After reading http://wiki.nginx.org, I find out that nginx has not the > offical support for the HTTP Etag, > http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.19 . I > want to know whether the future version of nginx will add this > feature. > > My website is taking use of nginx to run static fby mike - Nginx Mailing List - English
has anyone validated 5.2.9 does not suffer from the "same" memory leak that 5.2.8 did with 5.2.9 + the unofficial 5.2.9 php-fpm patch? I hope Andrei is okay. He's disappeared off the face of the earth now for a while. On Tue, Mar 31, 2009 at 10:36 AM, adi <nginx-forum@nginx.us> wrote: > > Hi. > PHP 5.2.8 have some issues with memory leak (once I have one processby mike - Php-fpm Mailing List - English
What is equals to, not equals to, regex, etc, etc. *~ = != ^~ etc etc. Specifically for the "if" statement. i.e. if ($remote_addr NOT EQUALS TO 1.2.3.4) { } is that an option?by mike - Nginx Mailing List - English