Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的应用程序中,我试图在 httpd-vhost 配置而不是 insde .htacces 文件中设置环境变量。如果我将 setEnv 变量放在 .htaccess 变量中,它可以正常工作,但不能方便地保持 .htaccess 与生产同步。我已经尝试在我的屏幕截图中看到将其设置在 httpd 配置中。我已重新启动 apache 以加载新配置。
欢迎任何建议或提示,并提前致谢。
当我在外部设置 setEnv 变量时,它似乎可以工作?