LoginSignup
0
0

More than 1 year has passed since last update.

dockerでnginx 関連メモ

Posted at

設定ファイル名
nginx.conf

設定ファイルの場所
/usr/local/nginx/conf, /etc/nginx, or /usr/local/etc/nginx.

設定ファイルの構造
ディレクティブによって定義していく。
シンプルディレクティブとブロックディレクティブがある。
シンプルディレクテぶは名前、パラメータを空白で区切り;でしめる。
ブロックディレクティブは最後が;ではなく{}で終わり{}の中には別の指示が入る。
ブロックディレクティブの中でも{}の中にさらにディレクティブを定義しているものはコンテキストと呼ばれる。

設定ファイルないで一番上の階層にあるディレクティブ達はmainコンテキストの中にあるとされる。

基本構造
main {
events {
}
http {
port xx
server {
}
location {
}
}
}

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0