How to exclude specific VirtualHost from https rewrite in le-redirect.conf


#1

Hi everyone,

I have setup Let’s Encrypt SSL certificate on my Debian 8 server with Apache 2.4.10, which works fine. Now I have created another VirtualHost entry which is available from outside, but caveat is that Apache is redirecting this virtulhost as defined in le-redirect.conf

ServerSignature Off

RewriteEngine On
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]

ErrorLog /var/log/apache2/redirect.error.log
LogLevel warn