X-Git-Url: https://iankelling.org/git/?p=basic-https-conf;a=blobdiff_plain;f=apache-site;h=59e541b648dccfdfb04e0e756f48b9b2e1ca3b1c;hp=a4f295ac68f0bd9de1e0981085e6e667c890eaff;hb=f2b46cd021980ef90d947a169b2164d6a68d0f57;hpb=75fa1938d9e9bd00dfab294deac75b3a749e4929 diff --git a/apache-site b/apache-site index a4f295a..59e541b 100755 --- a/apache-site +++ b/apache-site @@ -94,7 +94,8 @@ fi rm -f /etc/apache2/sites-enabled/000-default.conf mkdir -p $root -dd of=/etc/apache2/sites-enabled/$h.conf <$vhost_file < ServerName $h ServerAlias www.$h @@ -102,26 +103,30 @@ dd of=/etc/apache2/sites-enabled/$h.conf <s %O \"%{Referer}i\" \"%{User-Agent}i\" %{ms}T" vhost_time_combined ServerAdmin webmaster@localhost DocumentRoot /var/www/html @@ -138,9 +143,8 @@ EOF mkdir -p /etc/letsencrypt - base_file=/etc/letsencrypt/options-ssl-apache.conf # this is from cerbot, see below. - dd of=$base_file <<'EOF' + cat >$certbot_ssl_conf <<'EOF' # Baseline setting to Include for SSL sites SSLEngine on @@ -166,7 +170,7 @@ LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common EOF upstream=https://github.com/certbot/certbot/raw/master/certbot-apache/certbot_apache/options-ssl-apache.conf - if ! diff -c <(wget -q -O - $upstream) $base_file; then + if ! diff -c <(wget -q -O - $upstream) $certbot_ssl_conf; then cat < # vim: syntax=apache ts=4 sw=4 sts=4 sr noet