Re: CentOS 6.6, SELinux breaks Nginx 1.6.0

2014-10-31 Thread bdwyertech
You can use something like this to handle project directories. $PROJECT_DIR=/srv/myproject semanage fcontext -a -t httpd_sys_content_t "$PROJECT_DIR(/.*)?" if [ -d "$PROJECT_DIR" ]; then restorecon -R "$PROJECT_DIR" fi Posted at Nginx Forum: http://forum.nginx.org/read.php?2,254456,254497#msg

Re: CentOS 6.6, SELinux breaks Nginx 1.6.0

2014-10-31 Thread bdwyertech
As a follow up, if you are using NginX as a proxy, you might need a few more things. Here is a preliminary template of a type enforcement I've created for NginX to alleviate these issues. You can use this Type Enforcement file to generate an SELinux module, package it up, and load it. module ngi