Skip to content

Commit

Permalink
Merge pull request sentora#56 from MBlagui/patch-5
Browse files Browse the repository at this point in the history
centos6_cgi_patch.sh
  • Loading branch information
allebb committed Mar 23, 2015
2 parents af5efe7 + 8a7223d commit e41ec54
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions centos6_cgi_patch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

#--- Apache server patch
HTTP_CONF_PATH="/etc/httpd/conf/httpd.conf"
# Disable more extra modules in centos 6.x /etc/httpd/httpd.conf dav/ldap/cgi/proxy_ajp
sed -i "s|LoadModule suexec_module modules|#LoadModule suexec_module modules|" "$HTTP_CONF_PATH"
sed -i "s|LoadModule cgi_module modules|#LoadModule cgi_module modules|" "$HTTP_CONF_PATH"
sed -i "s|LoadModule dav_module modules|#LoadModule dav_module modules|" "$HTTP_CONF_PATH"
sed -i "s|LoadModule ldap_module modules|#LoadModule ldap_module modules|" "$HTTP_CONF_PATH"
sed -i "s|LoadModule dav_fs_module modules|#LoadModule dav_fs_module modules|" "$HTTP_CONF_PATH"
sed -i "s|LoadModule proxy_ajp_module modules|#LoadModule proxy_ajp_module modules|" "$HTTP_CONF_PATH"

0 comments on commit e41ec54

Please sign in to comment.