duansang8388 2015-03-19 06:56
浏览 255

如何使用PHP获取Apache AccessFileName值?

I have a custom AccessFileName setup for my virtual host. How can I get that variable via code?

I've looked at the $_SERVER variables available but it doesn't have the AccessFileName listed as an available variable.

I do need to have this AccessFileName setting different for different virtual hosts so if I can do this without updating php.ini that would be ideal.

  • 写回答

1条回答 默认 最新

  • douji5329 2015-05-21 17:53
    关注

    If you can add this option to virtualhost config, so you can add another one:

    SetEnv ACCESS_FILE_NAME .another-name
    

    And get it in php using $_SERVER['ACCESS_FILE_NAME']

    评论

报告相同问题?

悬赏问题

  • ¥15 求解达问题(有红包)
  • ¥15 请解包一个pak文件
  • ¥15 不同系统编译兼容问题
  • ¥100 三相直流充电模块对数字电源芯片在物理上它必须具备哪些功能和性能?
  • ¥30 数字电源对DSP芯片的具体要求
  • ¥20 antv g6 折线边如何变为钝角
  • ¥30 如何在Matlab或Python中 设置饼图的高度
  • ¥15 nginx中的CORS策略应该如何配置
  • ¥30 信号与系统实验:采样定理分析
  • ¥100 我想找人帮我写Python 的股票分析代码,有意请加mathtao