You are here

Apache / tomcat integration on redhat / centos (for selinux)

on Sep 10, 2009

By default selinux will decline system services to read unknow files, and it will cause apache can't enalbe mod_jk, the solution is:
------------------------------------------------------------------
/etc/rc3.d/S15httpd -------->

/sbin/restorecon -v /etc/httpd/conf/httpd.conf
/sbin/restorecon -v /etc/httpd/conf.d/mod_jk.conf
/sbin/restorecon -v /usr/lib/httpd/modules/mod_jk.so
/sbin/restorecon -v /etc/httpd/conf/workers.properties
/sbin/restorecon -v /etc/httpd/conf/uriworkermap.properties
------------------------------------------------------------------
And for deployed web paged, we need:
------------------------------------------------------------------
chcon -R -t httpd_sys_content_t $1
------------------------------------------------------------------