LoginSignup
0
1

More than 5 years have passed since last update.

SELinuxを有効にした状態で、ドキュメントルートを変更

Last updated at Posted at 2017-05-17

SELinuxを有効にした状態で、ドキュメントルートを変更

/httpd.confのDocumentRootを
/home/hoge/public_html
と書き換えて、ドキュメントルートを変更した。

以前、ユーザディレクトリをSELinuxを有効にした状態で公開したときの
コマンドを実行した。

# chcon -R -t httpd_user_content_t /home/hoge/public_html

しかし、何の変化も起きない。

もしやと思って、

# chcon -R -t httpd_sys_content_t /home/labpress/public_html

と実行すると、表示できた。
/homeの下であっても、「httpd_sys_content_t」なんですね。
当たり前といえば当たり前、何も考えず流れでコマンドを打ったことを反省。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1