Apache 重命名 httpd.conf 文件
Apache rename httpd.conf file
httpd.conf 文件似乎可以命名为其他名称。
例如,我的 httpd.conf (Apache2.2, Windows 7) 被称为 "httpd-LIVE.conf" 和另一个 "httpd-TEST.conf"。
这会导致任何问题吗?只要扩展名是 .conf,我们可以自由地将 httpd.conf 重命名为我们想要的任何名称吗?
谢谢
http://httpd.apache.org/docs/2.2/en/configuring.html:
The main configuration file is usually called httpd.conf
. The location of this file is set at compile-time, but may be overridden with the -f
command line flag.
所以不,似乎你不能将它重命名为任何东西,至少不能在编译时或每次启动时“告诉”httpd 可执行文件关于它的信息。
httpd.conf 文件似乎可以命名为其他名称。 例如,我的 httpd.conf (Apache2.2, Windows 7) 被称为 "httpd-LIVE.conf" 和另一个 "httpd-TEST.conf"。 这会导致任何问题吗?只要扩展名是 .conf,我们可以自由地将 httpd.conf 重命名为我们想要的任何名称吗? 谢谢
http://httpd.apache.org/docs/2.2/en/configuring.html:
The main configuration file is usually called
httpd.conf
. The location of this file is set at compile-time, but may be overridden with the-f
command line flag.
所以不,似乎你不能将它重命名为任何东西,至少不能在编译时或每次启动时“告诉”httpd 可执行文件关于它的信息。