IIS - 1 个 ApplicationPool 和 2 个站点,current_user 不同。如何改变?

IIS - 1 ApplicationPool with 2 sites, current_user is different. How to change?

我有一台 ISS 10 服务器,在 1 个应用程序池中托管 2 PHP 个应用程序。 应用程序池配置有身份“userA”。

当我在 site01 上 运行 get_current_user() 时 return “userA”。 当我在 site02 上 运行 相同时 return "IUSR".

我如何解决 site02 的问题并使其成为 运行 相同的用户帐户?

谢谢

在 IIS 管理器中 select 站点,然后是 Authentication 图标,select Anonymous Authentication 并单击右侧“操作”面板中的 Edit... :

确保两个站点的这些设置相同。