Sometimes you may want to override the default SELinux context for a given path.

This can be easily accomplished editing /etc/selinux/targeted/contexts/files/file_contexts.local adding an entry (which is made by a path regexp and the selinux content). Follows an example:

/path(/.*)? system_u:object_r:httpd_sys_content_t:s0