Apache - how to get REMOTE_USER variable

后端 未结 4 1968
别那么骄傲
别那么骄傲 2020-12-01 11:29

Previously I used the IIS server as PHP server. Currently, it is the apache.

On IIS I could access to the variable $_SERVER [\'REMOTE_USER\'] which retu

4条回答
  •  执念已碎
    2020-12-01 12:09

    You can only access the remote user if Apache has actually authenticated the user, check the apache auth howto.

提交回复
热议问题