# HG changeset patch # User Oleksandr Gavenko # Date 1714654057 -10800 # Node ID 68975e7d52379ead1e3c4204724e3a0791252d87 # Parent 7b602d7f98cdf5c6611ddf2b8277c0d9e4ff79c7 Recreate Apache settings for Lets Encrypt SSL. diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-letsencrypt.bash --- a/deb/apache-letsencrypt.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-letsencrypt.bash Thu May 02 15:47:37 2024 +0300 @@ -30,3 +30,14 @@ # systemctl reload apache2 # sudo certbot --apache --agree-tos --redirect -m youremail@email.com -d domainname.com -d www.domainname.com + +cat >/srv/www/letsencrypt/apache-ssl-options.conf <s %b \"%{Referer}i\" \"%{User-agent}i\"" vhost_combined +LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common +EOF + diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-register-2048.bash --- a/deb/apache-register-2048.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-register-2048.bash Thu May 02 15:47:37 2024 +0300 @@ -35,7 +35,7 @@ SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf + Include /srv/www/letsencrypt/apache-ssl-options.conf EOF diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-register-blog.bash --- a/deb/apache-register-blog.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-register-blog.bash Thu May 02 15:47:37 2024 +0300 @@ -35,7 +35,7 @@ SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf + Include /srv/www/letsencrypt/apache-ssl-options.conf EOF diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-register-cooking.bash --- a/deb/apache-register-cooking.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-register-cooking.bash Thu May 02 15:47:37 2024 +0300 @@ -35,7 +35,7 @@ SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf + Include /srv/www/letsencrypt/apache-ssl-options.conf EOF diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-register-forward-proxy.bash --- a/deb/apache-register-forward-proxy.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-register-forward-proxy.bash Thu May 02 15:47:37 2024 +0300 @@ -43,7 +43,7 @@ SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf + Include /srv/www/letsencrypt/apache-ssl-options.conf 'EOF' diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-register-gadict.bash --- a/deb/apache-register-gadict.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-register-gadict.bash Thu May 02 15:47:37 2024 +0300 @@ -41,7 +41,7 @@ SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf + Include /srv/www/letsencrypt/apache-ssl-options.conf EOF diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-register-resume.bash --- a/deb/apache-register-resume.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-register-resume.bash Thu May 02 15:47:37 2024 +0300 @@ -35,7 +35,7 @@ SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf + Include /srv/www/letsencrypt/apache-ssl-options.conf EOF diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-register-stat.bash --- a/deb/apache-register-stat.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-register-stat.bash Thu May 02 15:47:37 2024 +0300 @@ -35,7 +35,7 @@ SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf + Include /srv/www/letsencrypt/apache-ssl-options.conf EOF diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-register-test.bash --- a/deb/apache-register-test.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-register-test.bash Thu May 02 15:47:37 2024 +0300 @@ -35,7 +35,7 @@ SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf + Include /srv/www/letsencrypt/apache-ssl-options.conf EOF diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-register-tips.bash --- a/deb/apache-register-tips.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-register-tips.bash Thu May 02 15:47:37 2024 +0300 @@ -35,7 +35,7 @@ SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf + Include /srv/www/letsencrypt/apache-ssl-options.conf EOF diff -r 7b602d7f98cd -r 68975e7d5237 deb/apache-register-welcome.bash --- a/deb/apache-register-welcome.bash Thu May 02 15:46:52 2024 +0300 +++ b/deb/apache-register-welcome.bash Thu May 02 15:47:37 2024 +0300 @@ -35,7 +35,7 @@ SSLCertificateFile /etc/letsencrypt/live/defun.work/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/defun.work/privkey.pem - Include /etc/letsencrypt/options-ssl-apache.conf + Include /srv/www/letsencrypt/apache-ssl-options.conf EOF