1. Zhang Huangbin
  2. iredmail

Source

iredmail / iRedMail / functions / apache_php.sh

Diff from to

File iRedMail/functions/apache_php.sh

  • Ignore whitespace
         perl -pi -e 's#^(LogLevel).*#${1} warn#' ${HTTPD_CONF}
 
         if [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
-            perl -pi -e 's#^(ServerTokens).*#${1} ProductOnly#' ${HTTPD_CONF_DIR}/security
+            perl -pi -e 's#^(ServerTokens).*#${1} ProductOnly#' ${HTTPD_MOD_CONF_SECURITY}
         fi
     fi