From 4b301df496b7e19dd484e0c5f8baeee760c1d87e Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 12 Apr 2018 19:12:45 +0200 Subject: [PATCH] install_httpd-2.4.sh: fix error in 00default. Rename '00default.conf' to '000-default.conf'. --- install_httpd-2.4.sh | 131 ++++++++++++++++++------------------------- 1 file changed, 56 insertions(+), 75 deletions(-) diff --git a/install_httpd-2.4.sh b/install_httpd-2.4.sh index 39a3366..79969a9 100755 --- a/install_httpd-2.4.sh +++ b/install_httpd-2.4.sh @@ -10,7 +10,7 @@ _backup_date="$(date +%Y%m%d-%H%M)" ## - _VSERVER_GUEST=no -_APACHE_VERSION=2.4.29 +_APACHE_VERSION=2.4.33 _WITH_MOD_PROXY_FCGI=true _WITH_MOD_FCGID=true @@ -3460,25 +3460,25 @@ if [ -f /etc/profile ]; then fi -## - Add default vhost configuration file 00default.conf +## - Add default vhost configuration file 000-default.conf ## - echo "" >> ${_logdir}/main.log -echo "## - Add default vhost configuration file 00default.conf.." >> ${_logdir}/main.log +echo "## - Add default vhost configuration file 000-default.conf.." >> ${_logdir}/main.log echo "## -" >> ${_logdir}/main.log echo "" -echononl "\tAdd default vhost configuration file 00default.conf.." -cat < ${PREFIX}/conf/vhosts/00default.conf +echononl "\tAdd default vhost configuration file 000-default.conf.." +cat < ${PREFIX}/conf/vhosts/000-default.conf ## - initial konfiguration -- ## ## - ipv4: $IPv4_FIRST EOF if [ -n "$IPv6_FIRST" ];then - cat <> ${PREFIX}/conf/vhosts/00default.conf + cat <> ${PREFIX}/conf/vhosts/000-default.conf ## - ipv6: $IPv6_FIRST EOF fi -cat <> ${PREFIX}/conf/vhosts/00default.conf +cat <> ${PREFIX}/conf/vhosts/000-default.conf SSLCompression off SSLStrictSNIVHostCheck off @@ -3503,14 +3503,14 @@ DirectoryIndex index.html index.htm index.php index.php5 EOF if [[ ${#_php_socket_arr[@]} -gt 0 ]] ; then - cat <> ${PREFIX}/conf/vhosts/00default.conf + cat <> ${PREFIX}/conf/vhosts/000-default.conf ## - Make PHP-FPM status page and PHP-FPM ping available ## - EOF for _val in ${_php_socket_arr[@]} ; do IFS=':' read -a _val_arr <<< "${_val}" - cat <> ${PREFIX}/conf/vhosts/00default.conf + cat <> ${PREFIX}/conf/vhosts/000-default.conf SetHandler "proxy:unix:${_val_arr[1]}|fcgi://127.0.0.1" @@ -3518,7 +3518,7 @@ EOF done else - cat <> ${PREFIX}/conf/vhosts/00default.conf + cat <> ${PREFIX}/conf/vhosts/000-default.conf ## - Make PHP-FPM status page and PHP-FPM ping available ## - @@ -3528,52 +3528,12 @@ else EOF fi -cat <> ${PREFIX}/conf/vhosts/00default.conf +cat <> ${PREFIX}/conf/vhosts/000-default.conf CustomLog /var/log/apache2/localhost.log combined ErrorLog /var/log/apache2/localhost.error - - -# -- dummy.${_DOMAIN}.$_TLD -- # - - - - ServerName dummy.${_DOMAIN}.$_TLD - - RewriteEngine On - RewriteCond %{HTTP_HOST} ^autoconfig\. [NC] - RewriteRule ^/(.*) http://autoconfig.${_DOMAIN}.${_TLD}/\$1 [L,R=301,NE] - #RewriteCond %{HTTP_HOST} !^autoconfig\. [NC] - #RewriteRule ^/(.*) http://www.${_DOMAIN}.${_TLD} [L,R=301,NE] - - DocumentRoot "$GLOBAL_DOC_ROOT" - - CustomLog /var/log/apache2/dummy.${_DOMAIN}.${_TLD}.log combined - ErrorLog /var/log/apache2/dummy.${_DOMAIN}.${_TLD}.error - - - - - ServerName dummy.${_DOMAIN}.$_TLD - - DocumentRoot "$GLOBAL_DOC_ROOT" - - SSLEngine on - - ## - don't support weak ciphers - SSLHonorCipherOrder On - SSLCompression Off - SSLProtocol ALL -SSLv2 -SSLv3 - - SSLCertificateFile /usr/local/apache2/conf/server-bundle.crt - SSLCertificateKeyFile /usr/local/apache2/conf/server.key - - CustomLog /var/log/apache2/dummy.${_DOMAIN}.${_TLD}.log combined - ErrorLog /var/log/apache2/dummy.${_DOMAIN}.${_TLD}.error - - EOF @@ -3588,31 +3548,49 @@ if [[ -n "${IPv6_FIRST}" ]]; then _default_ipv6=true fi -_vhost_default="" -_vhost_default_80="" -_vhost_default_443="" -if $_default_ipv4 && $_default_ipv6 ; then - _vhost_default="> ${PREFIX}/conf/vhosts/00default.conf + cat <> ${PREFIX}/conf/vhosts/000-default.conf $_vhost_default_80 ServerName dummy.${_DOMAIN}.$_TLD @@ -3654,14 +3632,14 @@ fi if [ -d "${PREFIX}/conf/vhosts/0" ] ; then - echo "" >> ${PREFIX}/conf/vhosts/00default.conf - echo "Include conf/vhosts/0/*.conf" >> ${PREFIX}/conf/vhosts/00default.conf + echo "" >> ${PREFIX}/conf/vhosts/000-default.conf + echo "Include conf/vhosts/0/*.conf" >> ${PREFIX}/conf/vhosts/000-default.conf fi if [ "$?" = "0" ]; then echo_ok else echo_failed - warn "Adding vhost configfile 000default.conf failed." + warn "Adding vhost configfile 0000-default.conf failed." fi @@ -3829,7 +3807,7 @@ h2 {

HTTP Error 404

-

The site you have requestet was not found on that Server

+

The site you have requestet was not found on this Server

Please check your spelling and try again.

Thank You very much!

@@ -3927,6 +3905,9 @@ if [[ -n "$_httpd_current_version" ]]; then if [[ "$(basename "$_name")" =~ 00default ]]; then continue fi + if [[ "$(basename "$_name")" =~ 000-default ]]; then + continue + fi if [[ "$(basename "$_name")" = "000-logformat.conf" ]]; then continue fi