Apache Virtual Hosting With Different Users > 리눅스

본문 바로가기

리눅스

리눅스

16. Apache Virtual Hosting With Different Users

페이지 정보

작성자 관리자 댓글 0건 조회 6,694회 작성일 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



Copyright © LEELAB.CO.KR. All rights reserved.