nginx里面的sites-available和sites-enabled有什么区别
phpcn_u1582
phpcn_u1582 2017-06-10 09:49:31
0
1
1234

一般修改配置改哪个的呢?我想改和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学习者快速成长!