【问题标题】:How to create Apache service with custom httpd.conf file如何使用自定义 httpd.conf 文件创建 Apache 服务
【发布时间】:2015-01-22 15:25:00
【问题描述】:

我有我的custom-httpd.conf 文件c:\apache\conf 我想知道如何使用这个custom-httpd.conf 文件而不是httpd.conf 文件在Windows 中创建Apache 服务

尝试了以下命令,但没有成功

httpd.exe -k start -k config ..\conf\custom-httpd.conf -n "Apachefacade"

【问题讨论】:

    标签: apache httpd.conf apache2.4


    【解决方案1】:

    我建议您在 my.conf 文件之一中列出您的自定义设置。正如Apache Site

    中所述

    如果你需要为不同的服务有专门命名的配置文件,你必须使用这个:

    httpd.exe -k install -n "MyServiceName" -f "c:\files\my.conf"
    

    祝你好运!

    【讨论】:

      猜你喜欢
      • 2013-09-22
      • 2016-08-13
      • 2011-09-27
      • 1970-01-01
      • 1970-01-01
      • 2011-04-02
      • 1970-01-01
      • 2010-12-17
      • 2021-02-17
      相关资源
      最近更新 更多