.\"O .Sh NAME .\"O .Nm nginx .\"O .Nd "HTTP and reverse proxy server, mail proxy server" .Sh åå‰ .Nm nginx .Nd "HTTP ãŠã‚ˆã³ãƒªãƒãƒ¼ã‚¹ãƒ—ãƒã‚シーサーãƒãƒ¼ã€ãƒ¡ãƒ¼ãƒ«ãƒ—ãƒã‚シーサーãƒãƒ¼" .\"O ---------------------------------------- .\"O .Sh SYNOPSIS .\"O .Nm .\"O .Op Fl ?hqTtVv .\"O .Op Fl c Ar file .\"O .Op Fl e Ar file .\"O .Op Fl g Ar directives .\"O .Op Fl p Ar prefix .\"O .Op Fl s Ar signal .Sh æ›¸å¼ .Nm .Op Fl ?hqTtVv .Op Fl c Ar file .Op Fl e Ar file .Op Fl g Ar directives .Op Fl p Ar prefix .Op Fl s Ar signal .\"O ---------------------------------------- .\"O .Sh DESCRIPTION .\"O .Nm .\"O (pronounced .\"O .Dq engine x ) .\"O is an HTTP and reverse proxy server, a mail proxy server, and a generic .\"O TCP/UDP proxy server. .\"O It is known for its high performance, stability, rich feature set, simple .\"O configuration, and low resource consumption. .Sh 説明 .Nm (発音㯠.Dq engine x ) ã¯ã€ HTTP ãŠã‚ˆã³ãƒªãƒãƒ¼ã‚¹ãƒ—ãƒã‚シーサーãƒãƒ¼ã€ メールプãƒã‚シーサーãƒãƒ¼ã€æ±Žç”¨çš„㪠TCP/UDP プãƒã‚シーサーãƒãƒ¼ã§ã™ã€‚ 高性能ã€å®‰å®šæ€§ã€è±Šå¯Œãªæ©Ÿèƒ½ã‚»ãƒƒãƒˆã€ç°¡å˜ãªè¨å®šã€ãƒªã‚½ãƒ¼ã‚¹ã®ä½Žæ¶ˆè²»ã¨ã„ã†ç‰¹å¾´ãŒçŸ¥ã‚‰ã‚Œã¦ã„ã¾ã™ã€‚ .\"O ---------------------------------------- .\"O .Pp .\"O The options are as follows: .\"O .Bl -tag -width ".Fl d Ar directives" .\"O .It Fl ?\& , h .\"O Print help. .\"O .It Fl c Ar file .\"O Use an alternative configuration .\"O .Ar file . .\"O .It Fl e Ar file .\"O Use an alternative error log .\"O .Ar file . .\"O Special value .\"O .Cm stderr .\"O indicates that the standard error output should be used. .\"O .It Fl g Ar directives .\"O Set global configuration directives. .\"O See .\"O .Sx EXAMPLES .\"O for details. .\"O .It Fl p Ar prefix .\"O Set the prefix path. .\"O The default value is .\"O .Pa /usr . .\"O .It Fl q .\"O Suppress non-error messages during configuration testing. .\"O .It Fl s Ar signal .\"O Send a signal to the master process. .\"O The argument .\"O .Ar signal .\"O can be one of: .\"O .Cm stop , quit , reopen , reload . .\"O The following table shows the corresponding system signals: .Pp オプションã¯ä»¥ä¸‹ã®ã¨ãŠã‚Šã§ã™ã€‚ .Bl -tag -width ".Fl d Ar directives" .It Fl ?\& , h ヘルプを表示ã—ã¾ã™ã€‚ .It Fl c Ar file 別ã®è¨å®šãƒ•ァイルã¨ã—㦠.Ar file を用ã„ã¾ã™ã€‚ .It Fl e Ar file 別ã®ã‚¨ãƒ©ãƒ¼ãƒã‚°ã¨ã—㦠.Ar file を用ã„ã¾ã™ã€‚ 特別ãªè¨å®šå€¤ .Cm stderr ãŒã‚ã£ã¦ã€ ã“ã‚Œã¯æ¨™æº–エラーã¸ã®å‡ºåŠ›ãŒè¡Œã‚れã¾ã™ã€‚ .It Fl g Ar directives ã‚°ãƒãƒ¼ãƒãƒ«è¨å®šãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–ã‚’è¨å®šã—ã¾ã™ã€‚ .Sx 例 ã®ã‚»ã‚¯ã‚·ãƒ§ãƒ³ã‚’å‚ç…§ã—ã¦ãã ã•ã„。 .It Fl p Ar prefix プレフィックスパスをè¨å®šã—ã¾ã™ã€‚デフォルト㯠.Pa /usr ã§ã™ã€‚ .It Fl q è¨å®šãƒ†ã‚¹ãƒˆã‚’行ã†éš›ã€ エラーã§ã¯ãªã„メッセージã¯çœç•¥ã—ã¾ã™ã€‚ .It Fl s Ar signal マスタープãƒã‚»ã‚¹ã«ã‚·ã‚°ãƒŠãƒ«ã‚’é€ä¿¡ã—ã¾ã™ã€‚ 引数 .Ar signal ã«ã¯ã€ .Cm stop , quit , reopen , reload ã®ã„ãšã‚Œã‹ã‚’指定ã—ã¾ã™ã€‚ 以下ã«ç¤ºã™ä¸€è¦§ã¯ã€ ã“れã«å¯¾å¿œã™ã‚‹ã‚·ã‚¹ãƒ†ãƒ シグナルã§ã™ã€‚ .\"O ---------------------------------------- .\"O .Pp .\"O .Bl -tag -width ".Cm reopen" -compact .\"O .It Cm stop .\"O .Dv SIGTERM .\"O .It Cm quit .\"O .Dv SIGQUIT .\"O .It Cm reopen .\"O .Dv SIGUSR1 .\"O .It Cm reload .\"O .Dv SIGHUP .\"O .El .\"O .It Fl T .\"O Same as .\"O .Fl t , .\"O but additionally dump configuration files to standard output. .\"O .It Fl t .\"O Do not run, just test the configuration file. .\"O .Nm .\"O checks the configuration file syntax and then tries to open files .\"O referenced in the configuration file. .\"O .It Fl V .\"O Print the .\"O .Nm .\"O version, compiler version, and .\"O .Pa configure .\"O script parameters. .\"O .It Fl v .\"O Print the .\"O .Nm .\"O version. .\"O .El .Pp .Bl -tag -width ".Cm reopen" -compact .It Cm stop .Dv SIGTERM .It Cm quit .Dv SIGQUIT .It Cm reopen .Dv SIGUSR1 .It Cm reload .Dv SIGHUP .El .It Fl T .Fl t ã¨åŒæ§˜ã§ã™ã€‚ ãŸã ã—ã“れã«åŠ ãˆã¦ã€ è¨å®šãƒ•ã‚¡ã‚¤ãƒ«å†…å®¹ã‚’æ¨™æº–å‡ºåŠ›ã«æ›¸ã出ã—ã¾ã™ã€‚ .It Fl t 実行ã¯è¡Œã‚ãšã«ã€ è¨å®šãƒ•ァイルã®ãƒ†ã‚¹ãƒˆã ã‘を行ã„ã¾ã™ã€‚ .Nm ã¯ã€ è¨å®šãƒ•ã‚¡ã‚¤ãƒ«ã®æ–‡æ³•ãƒã‚§ãƒƒã‚¯ã‚’行ã„〠è¨å®šãƒ•ァイル内ã‹ã‚‰å‚ç…§ã•れã¦ã„るファイルã®èªã¿è¾¼ã¿ã‚’試ã—ã¾ã™ã€‚ .It Fl V .Nm ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã€ コンパイラーãƒãƒ¼ã‚¸ãƒ§ãƒ³ã€ .Pa configure スクリプトã®ãƒ‘ラメーターを表示ã—ã¾ã™ã€‚ .It Fl v .Nm ã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’表示ã—ã¾ã™ã€‚ .El .\"O ---------------------------------------- .\"O .Sh SIGNALS .\"O The master process of .\"O .Nm .\"O can handle the following signals: .Sh シグナル .Nm ã®ãƒžã‚¹ã‚¿ãƒ¼ãƒ—ãƒã‚»ã‚¹ã¯ã€ 以下ã®ã‚·ã‚°ãƒŠãƒ«ã‚’å–り扱ã„ã¾ã™ã€‚ .\"O ---------------------------------------- .\"O .Pp .\"O .Bl -tag -width ".Dv SIGINT , SIGTERM" -compact .\"O .It Dv SIGINT , SIGTERM .\"O Shut down quickly. .\"O .It Dv SIGHUP .\"O Reload configuration, start the new worker process with a new .\"O configuration, and gracefully shut down old worker processes. .\"O .It Dv SIGQUIT .\"O Shut down gracefully. .\"O .It Dv SIGUSR1 .\"O Reopen log files. .\"O .It Dv SIGUSR2 .\"O Upgrade the .\"O .Nm .\"O executable on the fly. .\"O .It Dv SIGWINCH .\"O Shut down worker processes gracefully. .\"O .El .Pp .Bl -tag -width ".Dv SIGINT , SIGTERM" -compact .It Dv SIGINT , SIGTERM ã™ãã«ã‚·ãƒ£ãƒƒãƒˆãƒ€ã‚¦ãƒ³ã—ã¾ã™ã€‚ .It Dv SIGHUP è¨å®šã‚’å†ãƒãƒ¼ãƒ‰ã—ã¦ã€ æ–°ãŸãªè¨å®šã‚’用ã„ãŸæ–°ãŸãªãƒ¯ãƒ¼ã‚«ãƒ¼ãƒ—ãƒã‚»ã‚¹ã‚’èµ·å‹•ã—ã¾ã™ã€‚ ãã—ã¦å¤ã„ワーカープãƒã‚»ã‚¹ã¯ã€ é©åˆ‡ã«ã‚·ãƒ£ãƒƒãƒˆãƒ€ã‚¦ãƒ³ã—ã¾ã™ã€‚ .It Dv SIGQUIT é©åˆ‡ã«ã‚·ãƒ£ãƒƒãƒˆãƒ€ã‚¦ãƒ³ã—ã¾ã™ã€‚ .It Dv SIGUSR1 ãƒã‚°ãƒ•ァイルを開ãç›´ã—ã¾ã™ã€‚ .It Dv SIGUSR2 .Nm 実行ファイルをãã®å ´ã§ã‚¢ãƒƒãƒ—グレードã—ã¾ã™ã€‚ .It Dv SIGWINCH ワーカープãƒã‚»ã‚¹ã‚’é©åˆ‡ã«ã‚·ãƒ£ãƒƒãƒˆãƒ€ã‚¦ãƒ³ã—ã¾ã™ã€‚ .El .\"O ---------------------------------------- .\"O .Pp .\"O While there is no need to explicitly control worker processes normally, .\"O they support some signals too: .Pp ワーカープãƒã‚»ã‚¹ã«å¯¾ã—ã¦ã€ 通常ã®åˆ¶å¾¡ã‚’明示的ã«è¡Œã†å¿…è¦ãŒãªã„å ´åˆã«ã¯ã€ ã•らã«ä»¥ä¸‹ã®ã‚·ã‚°ãƒŠãƒ«ã‚‚サãƒãƒ¼ãƒˆã—ã¦ã„ã¾ã™ã€‚ .\"O ---------------------------------------- .\"O .Pp .\"O .Bl -tag -width ".Dv SIGINT , SIGTERM" -compact .\"O .It Dv SIGTERM .\"O Shut down quickly. .\"O .It Dv SIGQUIT .\"O Shut down gracefully. .\"O .It Dv SIGUSR1 .\"O Reopen log files. .\"O .El .Pp .Bl -tag -width ".Dv SIGINT , SIGTERM" -compact .It Dv SIGTERM ã™ãã«ã‚·ãƒ£ãƒƒãƒˆãƒ€ã‚¦ãƒ³ã—ã¾ã™ã€‚ .It Dv SIGQUIT é©åˆ‡ã«ã‚·ãƒ£ãƒƒãƒˆãƒ€ã‚¦ãƒ³ã—ã¾ã™ã€‚ .It Dv SIGUSR1 ãƒã‚°ãƒ•ァイルを開ãç›´ã—ã¾ã™ã€‚ .El .\"O ---------------------------------------- .\"O .Sh DEBUGGING LOG .\"O To enable a debugging log, reconfigure .\"O .Nm .\"O to build with debugging: .Sh デãƒãƒƒã‚°ãƒã‚° デãƒãƒƒã‚°ãƒã‚°ã‚’有効ã«ã™ã‚‹ã«ã¯ã€ デãƒãƒƒã‚°æ©Ÿèƒ½ãŒå«ã¾ã‚Œã‚‹ã‚ˆã†ã« .Nm ãƒ“ãƒ«ãƒ‰ã‚’å†æ§‹æˆã—ã¾ã™ã€‚ .\"O ---------------------------------------- .\"O .Pp .\"O .Dl "./configure --with-debug ..." .Pp .Dl "./configure --with-debug ..." .\"O ---------------------------------------- .\"O .Pp .\"O and then set the .\"O .Cm debug .\"O level of the .\"O .Va error_log : .Pp ãã—㦠.Va error_log ã®ãƒã‚°ãƒ¬ãƒ™ãƒ«ã‚’ .Cm debug ã«è¨å®šã—ã¾ã™ã€‚ .\"O ---------------------------------------- .\"O .Pp .\"O .Dl "error_log /path/to/log debug;" .Pp .Dl "error_log /path/to/log debug;" .\"O ---------------------------------------- .\"O .Pp .\"O It is also possible to enable the debugging for a particular IP address: .\"O .Bd -literal -offset indent .\"O events { .\"O debug_connection 127.0.0.1; .\"O } .\"O .Ed .Pp 特定㮠IP アドレスã«å¯¾ã—ã¦ã€ デãƒãƒƒã‚°ã‚’有効ã«ã™ã‚‹ã“ã¨ã‚‚ã§ãã¾ã™ã€‚ .Bd -literal -offset indent events { debug_connection 127.0.0.1; } .Ed .\"O ---------------------------------------- .\"O .Sh ENVIRONMENT .\"O The .\"O .Ev NGINX .\"O environment variable is used internally by .\"O .Nm .\"O and should not be set directly by the user. .Sh 環境変数 環境変数 .Ev NGINX ã¯ã€ .Nm ãŒå†…部ã§åˆ©ç”¨ã—ã¦ã„ã¾ã™ã€‚ ã“れã¯ãƒ¦ãƒ¼ã‚¶ãƒ¼ãŒç›´æŽ¥è¨å®šã™ã‚‹ã‚‚ã®ã§ã¯ã‚りã¾ã›ã‚“。 .\"O ---------------------------------------- .\"O .Sh FILES .\"O .Bl -tag -width indent .\"O .It Pa /var/run/nginx.pid .\"O Contains the process ID of .\"O .Nm . .\"O The contents of this file are not sensitive, so it can be world-readable. .\"O .It Pa /etc/nginx/nginx.conf .\"O The main configuration file. .\"O .It Pa /var/log/error.log .\"O Error log file. .\"O .El .Sh ファイル .Bl -tag -width indent .It Pa /var/run/nginx.pid .Nm ã®ãƒ—ãƒã‚»ã‚¹ ID ã‚’ä¿æŒã—ã¾ã™ã€‚ ã“ã®ãƒ•ァイルã®å†…å®¹ã¯æ©Ÿå¯†æƒ…å ±ã§ã¯ãªã„ãŸã‚〠ã れã§ã‚‚見るã“ã¨ãŒã§ãã¾ã™ (world-readable ã§ã™)。 .It Pa /etc/nginx/nginx.conf メインã®è¨å®šãƒ•ァイル。 .It Pa /var/log/error.log エラーãƒã‚°ãƒ•ァイル。 .El .\"O ---------------------------------------- .\"O .Sh EXIT STATUS .\"O Exit status is 0 on success, or 1 if the command fails. .Sh 終了ステータス 終了ステータスã¯ã€ æ£å¸¸å‡¦ç†æ™‚ã« 0〠処ç†å¤±æ•—時㫠1 ã§ã™ã€‚ .\"O ---------------------------------------- .\"O .Sh EXAMPLES .\"O Test configuration file .\"O .Pa ~/mynginx.conf .\"O with global directives for PID and quantity of worker processes: .\"O .Bd -literal -offset indent .\"O nginx -t -c ~/mynginx.conf \e .\"O -g "pid /var/run/mynginx.pid; worker_processes 2;" .\"O .Ed .Sh 例 テストã®è¨å®šãƒ•ァイルã¨ã—㦠.Pa ~/mynginx.conf を指定ã—ã¾ã™ã€‚ ãã—㦠PID ã«å¯¾ã™ã‚‹ã‚°ãƒãƒ¼ãƒãƒ«ãƒ‡ã‚£ãƒ¬ã‚¯ãƒ†ã‚£ãƒ–を用ã„ã¦ã€ ワーカープãƒã‚»ã‚¹é‡ã‚’è¨å®šã—ã¾ã™ã€‚ .Bd -literal -offset indent nginx -t -c ~/mynginx.conf \e -g "pid /var/run/mynginx.pid; worker_processes 2;" .Ed .\"O ---------------------------------------- .\"O .Sh SEE ALSO .\"O Documentation at .\"O .Pa http://nginx.org/en/docs/ . .Sh é–¢é€£é …ç›® ドã‚ュメント: .Pa http://nginx.org/en/docs/ .\"O ---------------------------------------- .\"O .Pp .\"O For questions and technical support, please refer to .\"O .Pa http://nginx.org/en/support.html . .Pp ç–‘å•や技術サãƒãƒ¼ãƒˆã®å¿…è¦ãŒã‚ã‚‹å ´åˆã¯ã€ .Pa http://nginx.org/en/support.html ã«å•ã„åˆã‚ã›ã¦ãã ã•ã„。 .\"O ---------------------------------------- .\"O .Sh HISTORY .\"O Development of .\"O .Nm .\"O started in 2002, with the first public release on October 4, 2004. .Sh 開発経緯 .Nm ã®é–‹ç™ºã¯ 2002 å¹´ã«é–‹å§‹ã—ã¾ã—ãŸã€‚ åˆã‚ã¦ã®å…¬é–‹ç‰ˆã¯ 2004 å¹´ 10 月 4 æ—¥ã«ãƒªãƒªãƒ¼ã‚¹ã—ã¦ã„ã¾ã™ã€‚ .\"O ---------------------------------------- .\"O .Sh AUTHORS .\"O .An -nosplit .\"O .An Igor Sysoev Aq Mt igor@sysoev.ru . .Sh 著者 .An -nosplit .An Igor Sysoev Aq Mt igor@sysoev.ru .\"O ---------------------------------------- .\"O .Pp .\"O This manual page was originally written by .\"O .An Sergey A. Osokin Aq Mt osa@FreeBSD.org.ru .\"O as a result of compiling many .\"O .Nm .\"O documents from all over the world. .Pp ã“ã®ãƒžãƒ‹ãƒ¥ã‚¢ãƒ«ãƒšãƒ¼ã‚¸ã¯ã€ ã‚‚ã¨ã‚‚ã¨ã¯ .An Sergey A. Osokin Aq Mt osa@FreeBSD.org.ru ãŒã€ 世界ä¸ã‹ã‚‰å¯„ã›ã‚‰ã‚ŒãŸ .Nm ã®ãƒ‰ã‚ュメントをå–りã¾ã¨ã‚ãŸçµæžœã¨ã—ã¦è¨˜è¿°ã—ã¾ã—ãŸã€‚ .\"O ----------------------------------------