File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -501,7 +501,7 @@ echo "<VirtualHost *:80>
501
501
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
502
502
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
503
503
504
- <FilesMatch \"\\ .(cgi|shtml|phtml|php)$\" >
504
+ <FilesMatch \" \.(cgi|shtml|phtml|php)$\" >
505
505
SSLOptions +StdEnvVars
506
506
</FilesMatch>
507
507
<Directory /usr/lib/cgi-bin>
@@ -703,7 +703,10 @@ echo "---------------------------------------------------------------"
703
703
echo " # Keep connections alive for only a few seconds
704
704
KeepAlive On
705
705
KeepAliveTimeout 3
706
- " >> /etc/apache2/conf.d/apache2-custom.conf
706
+
707
+ # Allow named virtual hosts on port 443
708
+ NameVirtualHost *:443
709
+ " >> /etc/apache2/httpd.conf
707
710
#
708
711
echo
709
712
echo
@@ -950,7 +953,7 @@ maxretry = 3
950
953
951
954
enabled = true
952
955
filter = modsecurity
953
- action = iptables-multiport[name=ModSecurity- $DOMAIN , port=\" http,https\" ]
956
+ action = iptables-multiport[name=ModSecurity, port=\" http,https\" ]
954
957
sendmail-buffered[name=ModSecurity, lines=10, dest=webmaster@$DOMAIN ]
955
958
logpath = /home/$USER /public_html/$DOMAIN /log/*error.log
956
959
bantime = 600
You can’t perform that action at this time.
0 commit comments