From 868eeb0287088a0488ec234f12fb98dd7ab80bbe Mon Sep 17 00:00:00 2001 From: "ncomputers.org" Date: Sun, 5 Mar 2017 13:15:04 -0600 Subject: [PATCH 1/2] updated --- install/tpl/apache_ispconfig.conf.master | 6 +- server/conf/apache_ispconfig.conf.master | 6 +- server/conf/vhost.conf.master | 76 ++++++++++-------------- 3 files changed, 43 insertions(+), 45 deletions(-) diff --git a/install/tpl/apache_ispconfig.conf.master b/install/tpl/apache_ispconfig.conf.master index c6a3b651a8..cb2b1bb6b7 100644 --- a/install/tpl/apache_ispconfig.conf.master +++ b/install/tpl/apache_ispconfig.conf.master @@ -4,7 +4,11 @@ ServerTokens ProductOnly ServerSignature Off - + + +SSLStaplingCache shmcb:/var/run/ocsp(128000) + + ################################################ # ISPConfig Logfile configuration for vlogger diff --git a/server/conf/apache_ispconfig.conf.master b/server/conf/apache_ispconfig.conf.master index c6a3b651a8..cb2b1bb6b7 100644 --- a/server/conf/apache_ispconfig.conf.master +++ b/server/conf/apache_ispconfig.conf.master @@ -4,7 +4,11 @@ ServerTokens ProductOnly ServerSignature Off - + + +SSLStaplingCache shmcb:/var/run/ocsp(128000) + + ################################################ # ISPConfig Logfile configuration for vlogger diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master index fdea684eaa..f16b2acae8 100644 --- a/server/conf/vhost.conf.master +++ b/server/conf/vhost.conf.master @@ -433,48 +433,47 @@ - RewriteEngine on + RewriteEngine on - RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/ - RewriteRule ^ - [END] + RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/ + RewriteRule ^ - [END] - - RewriteCond %{HTTP_HOST} ^$ [NC] - - RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ - - RewriteRule ^(.*)$ https://$1 [R=301,NE,L] - - - RewriteCond %{HTTP_HOST} ^$ [NC] - - RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ - - RewriteRule ^(.*)$ https://$1 [R=301,NE,L] - - - RewriteCond %{HTTP_HOST} $ [NC] - - RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ - - - RewriteCond %{REQUEST_URI} !^/webdav/ - RewriteCond %{REQUEST_URI} !^/php5-fcgi/ - RewriteCond %{REQUEST_URI} !^ - - - RewriteRule ^/(.*)$ $1 - - - RewriteCond %{HTTPS} off - RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ + RewriteCond %{HTTPS} off + + RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ + + RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + - RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + + RewriteCond %{HTTP_HOST} $ [NC] + + RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ + + RewriteCond %{REQUEST_URI} !^/webdav/ + RewriteCond %{REQUEST_URI} !^/php5-fcgi/ + RewriteCond %{REQUEST_URI} !^ + + RewriteRule /(.*) $1 + + + RewriteCond %{HTTP_HOST} ^$ [NC] + + RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ + + RewriteRule ^ https://%{REQUEST_URI} [R=301,NE,L] + + RewriteCond %{HTTP_HOST} ^$ [NC] + + RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ + + RewriteRule ^ https://%{REQUEST_URI} [R=301,NE,L] + # add support for apache mpm_itk @@ -503,15 +502,6 @@ - - - - - SSLStaplingCache shmcb:/var/run/ocsp(128000) - - - - -- GitLab From 7231fdd977a887490363c4849dfeb3f1cb7ae056 Mon Sep 17 00:00:00 2001 From: "ncomputers.org" Date: Sun, 5 Mar 2017 23:37:07 -0600 Subject: [PATCH 2/2] improved order --- server/conf/vhost.conf.master | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master index f16b2acae8..fd455ab87b 100644 --- a/server/conf/vhost.conf.master +++ b/server/conf/vhost.conf.master @@ -438,16 +438,6 @@ RewriteCond %{REQUEST_URI} ^/\.well-known/acme-challenge/ RewriteRule ^ - [END] - - - - RewriteCond %{HTTPS} off - - RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ - - RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] - - RewriteCond %{HTTP_HOST} $ [NC] @@ -474,6 +464,16 @@ RewriteRule ^ https://%{REQUEST_URI} [R=301,NE,L] + + + + RewriteCond %{HTTPS} off + + RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ + + RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] + + # add support for apache mpm_itk -- GitLab