16. Apache Virtual Hosting With Different Users
페이지 정보
작성자 관리자 댓글 0건 조회 3,784회 작성일 21-07-06 10:03본문
16. Apache Virtual Hosting With Different Users
1. install httpd-itk.x86_64
# yum install httpd-itk.x86_64 -y
2. enable this module
# vi /etc/httpd/conf.modules.d/00-mpm-itk.conf
# ITK MPM (Multi-Processing Module). Mpm-itk allows you to run each of your
# vhost under a separate uid and gid - in short, the scripts and configuration
# files for one vhost no longer have to be readable for all the other vhosts.
LoadModule mpm_itk_module modules/mod_mpm_itk.so
3. edit /etc/conf/httpd/httpd.conf
<VirtualHost *>
<IfModule mpm_itk_module>
AssignUserId apache www
</IfModule>
</VirtualHost>
4. restart apache
댓글목록
등록된 댓글이 없습니다.