Nginx Hacking Tips nginxハッキングのヒント

July 12th, 2008 2008年7月12日

nginxロゴ Nginx nginx is a high performance web server and mail proxy server written by Igor Sysoev and a good replacement for Apache HTTPD, the market leader.は、高パフォーマンスのWebサーバーとメールのプロキシサーバーと書かれたイゴールsysoev良い置換をApacheのhttpdは、市場のリーダーです。 Nginx is rapidly increasing its market share with major websites joining it like wordpress.com. nginxが急速に増えて、市場シェアに参加することで主要なウェブサイトをwordpress.comのようです。 In the June 2008 Netcraft survey LiteSpeed lost more than 600 thousand sites during this survey, while nginx gained more than a million sites; more than doubling in numbers. netcraftの調査は、 2008年6月litespeed 600000サイトの中に失われた以上、この調査によると、 nginx得ながら、 100万以上のサイトの2倍以上の数の上でのです。 The WordPress blogging system recently最近、 WordPressのブログシステム converted変換 all of its load balancers to nginx, using the nginx負荷のすべての人々を、使用して、 upstream hash module上流のハッシュモジュール to serve 8-9 thousand requests per second. 1秒あたりの要求に八から九千です。 We too have decided to move some of our websites to Nginx.私たちがあまりにもいくつかのウェブサイトに移動することを決めたをnginxです。 Here are few essential tips and general guidelines for configuring Nginx.ここではいくつかのヒントや一般的なガイドラインを構成するために欠かせないnginxです。 This is not a substitute for reading the documentation (rtfm).これは特定のドキュメントを読むの代替( rtfm ) 。 However when you are stuck even after reading and re-reading the nginx documentation then read below.しかしときにはスタックにも読んで読んだ後、再度入力し、 nginxのドキュメントをご覧ください。 You will understand the value of the tips below only thenあなたは、下記のヒントを理解するだけの値を入力し、 : )

Read more (1037 words) » 続きを読む( 1037単語) »

Tips on Configuring Nginx for Virtual Hosting 仮想ホストの設定のヒントについてはnginx

July 10th, 2008 2008年7月10日

Nginx nginx tutorials and examples doesn't tell you how you can configure nginx with virtual hosting when different sites are in different pre-defined directories.チュートリアルや例はありませんがどのように伝える弊社の仮想ホストを構成することができますnginx時に別のサイトではさまざまな事前定義されたディレクトリを移動します。 Often you are moving over your site from a different web server like Apache HTTPD to Nginx.多くの場合、お客様がご自身のサイトから移行する場合は、別のウェブサーバーのhttpdをApacheのnginxようです。 So you have a pre-defined directory structure which may not be easy to change.事前に定義する必要があるので、ディレクトリ構造を簡単に変更することはできません。 Configuring nginx is somewhat tricky in this scenario because nginx isn't very flexible in accepting directives everywhere. nginxの構成このシナリオでは、やや難しいnginxではないため、非常に柔軟性を受け入れるディレクティブています。 After much experimentation we came up with this simple way:私たちは多くの実験をした後に、この簡単な方法:
Read more (242 words) » 続きを読む( 242単語) »

How To Run phpBB on Nginx With Virtual Hosting phpBBの上を実行する方法の仮想ホストをnginx

July 10th, 2008 2008年7月10日

We now have our現在は当社 phpBB phpBBの forumフォーラム running onで実行される Nginx nginx web server, a high quality and significantly better performing web server than Apache HTTPD.ウェブサーバーでは、高品質でよりも大幅に向上WebサーバーApacheの舞台のhttpdです。 Soem of the challenges we faced were:私たちが直面するいくつかの課題:

  1. We use nice permalinks in the forum so there are lots of apache httpd rewrite rules in .htaccess files which had to be converted to nginx format.私たちの使用ニースPermalinksで開催中のフォーラムので書き直すには、たくさんのApacheのhttpdのルールです。 htaccessファイルに変換されていたnginxされる形式です。
  2. Additionally we also had to configure it for a virtual hosting setup where the same IP address (server) is shared by multiple websites.また私たちを構成することも、仮想ホストのセットアップは、同じIPアドレス(サーバー)は、複数のウェブサイトで共有されます。

Read more (395 words) » 続きを読む( 395単語) »

Ngnix: Solution for Directory Resolution Problem in Virtual Hosting ngnix :ディレクトリのソリューションを提供問題を解決方法仮想ホスト

July 9th, 2008 2008年7月9日

Nginx displays a peculiar but logical behavior when handling directories specified without the ending slash.しかし、論理的nginxを表示する奇妙な現象が発生スラッシュ取扱ディレクトリを指定し、その結末です。 For example you have a directory like http://www.example2.com/dir/.たとえばhttp://www.example2.com/dir/をお持ちのようなディレクトリです。 However you specify the url as http://www.example2.com/dir.しかしhttp://www.example2.com/dirとしてのURLを指定する。 Also assume that you have configured the server for virtual hosting and the alternative server names are: www.example.com, www.example2.com etc. and they are specified in the same order.と仮定してもするように構成のためのサーバー仮想ホストとは別のサーバー名: www.example.com 、 www.example2.com等と同じ順序で指定されている。 Now when you try to fetch http://www.example2.com/dir you will instead be redirected to http://www.example.com/dir.今すぐhttp://www.example2.com/dirを取得しようとしたときにhttp://www.example.com/dirにリダイレクトされる代わりにします。 Here is why nginx does it along with a simple solution to the rather baffling problem (ok complex problem - I said it).ここではなぜnginxはそれと一緒に、単純な解決策をむしろ不可解な問題が発生しました(オクラホマ複雑な問題-私によると) 。

Read more (273 words) » 続きを読む( 273単語) »