Apache MPM ITK 配置

vim /etc/apache2/apache.conf
<IfModule mpm_itk_module>
StartServers        1
MinSpareServers     1
MaxSpareServers     4
MaxClients          256
        MaxRequestsPerChild     8192
AssignUserID ${APACHE_RUN_USER} ${APACHE_RUN_GROUP} # 很重要
</IfModule>

如果不要 apache.conf 文件中指定一个全局的 AssignUserID,Apache 服务进程将运行在 root 用户下,这样没有指定用户的 Virtual Host 就会进行在高权限下,很危险!

Over!

Leave a Reply

Your email address will not be published. Required fields are marked *