【问题标题】:how to create a httpd.conf file如何创建 httpd.conf 文件
【发布时间】:2013-09-22 09:36:04
【问题描述】:

我想创建一个 httpd.conf 文件以上传到我的 Apache 服务器。我需要创建此文件以配置 SSLCertificateChainFile。有人知道如何做到这一点吗?

【问题讨论】:

    标签: linux apache hosting


    【解决方案1】:

    httpd.conf 文件通常存在,您应该能够在其中添加您的特定配置设置。

    Where is my httpd.conf file located apache

    【讨论】:

      【解决方案2】:

      我认为您不想创建它。您只需要找到并配置它。你可以试试this

      可以配置这个没有“默认位置”所以我通常这样做:

      $ ps -ef | grep apache
      

      这给了我一个类似的列表

      deploy@cmd01:/$ ps -ef | grep apache
      root      4053     1  0 06:26 ?        00:00:04 /usr/sbin/apache2 -k start
      www       5189  4053  0 11:00 ?        00:00:00 /usr/sbin/apache2 -k start
      www       5199  4053  0 11:00 ?        00:00:00 /usr/sbin/apache2 -k start
      ...
      

      然后直接运行

      $ /usr/sbin/apache2 -V
      

      你会得到你需要的细节,特别是这个

      使用...编译的服务器

      -D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"
      

      【讨论】:

        猜你喜欢
        • 2019-07-29
        • 2015-01-22
        • 2011-07-23
        • 1970-01-01
        • 2019-05-13
        • 1970-01-01
        • 2016-03-19
        • 1970-01-01
        • 2014-11-25
        相关资源
        最近更新 更多