
내 가상 호스트가 SELinux가 "허용"으로 설정된 경우에만 작동하는 이유가 궁금합니다. SELinux가 "Force"로 설정되면 내 가상 호스트가 무시되고 기본 호스트가 표시됩니다.
아파치/2.2.15(유닉스)
이것은 내 httpd.comf입니다. http://pastebin.com/2LRzLZ8Z
더미 파일에는 다음이 포함됩니다.
<VirtualHost *>
DocumentRoot "/srv/vhosts/foo.com/htdocs"
ServerName mysite.com
<Directory "/srv/vhosts/foo.com/htdocs">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
일하다:
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: permissive
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
작동하지 않습니다:
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted