【问题标题】:nginx.conf VS configuration inside sites-enabled?nginx.conf VS配置里面的站点启用?
【发布时间】:2018-07-07 20:00:25
【问题描述】:

这里是菜鸟问题:

nginx.conf 里面的配置和sites-enabled 目录里面的配置有什么区别?哪个优先?

谢谢

【问题讨论】:

    标签: nginx configuration server


    【解决方案1】:

    “启用站点”目录保存您的虚拟主机配置。 nginx.conf 保留您的 nginx 配置 + 虚拟主机配置。 来自 nginx.conf 文件的示例:

        ##
        # Virtual Host Configs
        ##
        include /etc/nginx/sites-enabled/*;
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-27
      • 1970-01-01
      • 1970-01-01
      • 2020-07-06
      • 1970-01-01
      相关资源
      最近更新 更多