LoginSignup
18
20

More than 5 years have passed since last update.

Nginx の sites-enabled と site-available の違い

Posted at

何も知らずに sites-enabled に設定ファイルを作成してたんですが、正しくは

site-available ディレクトリに設定ファイルを置いといて、必要な設定だけをシンボリックリンクで sites-enabled に置くのが正しいようです。

ちなみに site-available に置いとかなくても他の場所でもOK。

Capistrano とかつかって デプロイしてる場合は ~/apps/appsname/current/config/nginx.conf へのリンクを置いといたりするみたいですね。(前回作業した時は書いてあることをそのまま真似するので精一杯でよくわかってたなかった。)

18
20
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
18
20