nginx裡面的sites-available和sites-enabled有什麼差別
phpcn_u1582
phpcn_u1582 2017-06-10 09:49:31
0
1
1235

一般修改配置改哪個的呢?我想改和php連線的設定

phpcn_u1582
phpcn_u1582

全部回覆(1)
我想大声告诉你
  If you are coming from Apache, the "sites-available" and "sites-enabled" 
directories will be familiar.

  These directories are used to define configurations for your websites. 
Files are generally created in the "sites-available" directory, and then
symbolically linked to the "sites-enabled" directory when they are ready 
to go live.

...

In the "nginx.conf" file, we can see that the end of the "http" block has:

    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;

How To Configure Nginx

sites-available是存放目前的server配置, 在這裡修改

sites-enabled是啟動並使用的server配置(從sites_available的檔案建立捷徑到sites-enabled)

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!