I need to set selinux permissions on a non-default httpd directory: /www/virtualhosts/site01
, ect.
So I issue:
[mybox]# semanage fcontext -a -t http_sys_content_t "/www(/.*)?"
And get:
ValueError: Type http_sys_content_t is invalid, must be a file or device type
What needs to happen to configure selinux to work with my non-default httpd directory?
You just need to fix your typo.
You entered:
But it is correctly: