semanage fcontext -a -t httpd_sys_rw_content_t '/var/www/'
and then apply the context changes with:
restorecon -v /var/www/
you will also need to apply the context changes to any files within the directory as well e.g.:
restorecon -v /var/www/index.html
No comments:
Post a Comment