SELinux Context For Web Application Directories

Home » CentOS » SELinux Context For Web Application Directories
CentOS 4 Comments

CentOS-6.5

We deploy web applications written with the Ruby on Rails framework using Capistrano (2.x). Each ‘family’ of web applications are ‘owned’ by a dedicated user id. The present httpd service is Apache 2.2.15 and we use Passenger 3.0.11. We are moving shortly to a new deployment host and at that time we will be updating to Apache 2.4.9 and Passenger 4..0.25.

Our deployment practice is to place the ‘family’ directory under /var/data/. This is the home directory of the application user id. We place each individual web application or component into its own directory underneath the family root. So that things look like this:

/var/data/hll_th
├── backups

4 thoughts on - SELinux Context For Web Application Directories

LEAVE A COMMENT