Skip to content

Commit

Permalink
centos6_cgi_patch.sh
Browse files Browse the repository at this point in the history
Patch cgi in separate file
  • Loading branch information
Mehdi-Bl committed Mar 20, 2015
1 parent 663a772 commit 8a7223d
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 8a7223d

Please sign in to comment.