From aaaf4ea646e77952a590ea6c856778ca6f2a9c00 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Mon, 25 Aug 2025 07:58:56 -0400 Subject: [PATCH] IMproving do_httpd.sh --- support/do_httpd.sh | 24 +++++++++++++----------- support/starting.sh | 5 +++++ 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/support/do_httpd.sh b/support/do_httpd.sh index 3857483..5660f28 100755 --- a/support/do_httpd.sh +++ b/support/do_httpd.sh @@ -39,9 +39,9 @@ cat >> /etc/httpd/conf.d/$APPNAME.conf < + DocumentRoot /var/www/$APPNAME + setenv PATH_INFO /etc/$APPNAME/$APPNAME.php + Alias /base-dir/ /var/www/$APPNAME/ + Alias /reg-icons/ /var/www/$APPNAME/reg-icons/ + Alias /base-graph/ /var/www/$APPNAME/graph/ + ScriptAlias /cgi-bin/ /var/www/$APPNAME/ + Options MultiViews FollowSymlinks ExecCGI AllowOverride AuthConfig FileInfo Indexes Limit Options Require all granted @@ -71,8 +71,8 @@ Listen 443 #---------------------------------------------- #SSL SSLEngine On - SSLCertificateKeyFile /etc/pki/$APPNAME/$APPNME-key.pem - SSLCertificateFile /etc/pki/$APPNAME/$APPNME-cert.pem + SSLCertificateKeyFile /etc/$APPNAME/pki/$APPNAME-key.pem + SSLCertificateFile /etc/$APPNAME/pki/$APPNAME-cert.pem SSLProtocol +TLSv1.3 +TLSv1.2 SSLCompression OFF SSLHonorCipherOrder ON @@ -106,4 +106,6 @@ if [ -n "$hostipv6" ] ; then add_web $hostipv6 fi +#restarting httpd server +service httpd restart diff --git a/support/starting.sh b/support/starting.sh index c6b4ba3..387a455 100755 --- a/support/starting.sh +++ b/support/starting.sh @@ -158,6 +158,11 @@ do_webconf() { /usr/lib/$APPNAME/support/do_httpd.sh +if [ $? = 0 ] ; then + sh_success $"Preparing $APPNAME httpd configuration" +else + sh_failure $"Preparing $APPNAME httpd configuration" +fi } #---------------------------------------------------------------------- #procedure to check if the config is properly done -- 2.47.3