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.
是否可以将 Apache 2.4 配置mpm-prefork为让用户以 Linux 用户身份进行身份验证(例如使用基本身份验证),然后setuid在执行请求之前对该用户进行处理?
mpm-prefork
setuid
似乎mod_suexec允许切换用户,但据我了解,这些用户在 apache2 配置中是硬编码的。我找不到suexec用于setuid特定经过身份验证的 linux 用户的示例。
mod_suexec
suexec
您可以使用 mod_auth_external 根据系统密码数据库对 apache 用户进行身份验证。
https://code.google.com/p/mod-auth-external/