Changes

Jump to: navigation, search

Tung httpd conf

20 bytes removed, 22:43, 27 July 2011
Create a cgi script in user's home
#By default, selinux doesn't allow Apache Server to read file inside user's home.
#:Change the default setting:<b><code><font color=green > setsebool -P httpd_enable_cgi 1</font></code></b>
#Add context type to make script exexutable. To do that you need to add The expressions for cgi file and public_html that must be more specific that than the default expression :<b><code><font color=purple>" /home/[^/]*/((www)|(web)|(public_html))(/.+)?" </font></code></b>.
#*For public_html: <b><code><font color=green >semanage fcontext -at httpd_sys_script_exec_t "/home/[^/]*/public_html"</font></code></b>
#*For cgi files: <b><code><font color=green >semanage fcontext -at httpd_sys_script_exec_t "/home/[^/]*/public_html/.+\.cgi"</font></code></b>
1
edit

Navigation menu