【发布时间】:2011-09-06 14:01:00
【问题描述】:
我想根据外部设置的环境变量在我的主 Apache httpd.conf 中包含一个或另一个外部 httpd.conf 文件。
所以我想做类似的事情:
if $(DEV_ENV) == "main"
Include "first file"
if $(DEV_ENV) == "alt"
Include "second file"
我一直在查看 mod_setenv 模块,但它用于在 Apache 配置中设置环境变量。 如何使用环境变量并对其值进行比较?
【问题讨论】:
标签: apache httpd.conf