# The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. ServerName www.kirbymicrowave.co.uk ServerAdmin drkirkby@kirkbymicrowave.co.uk DocumentRoot /var/www/html/kirkbymicrowave.co.uk SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error-www.kirbymicrowave.co.uk-SSL.log CustomLog ${APACHE_LOG_DIR}/access-www.kirbymicrowave.co.uk-SSL.log combined SSLEngine on Redirect "/""https://www.kirkbymicrowave.co.uk/" SSLCertificateFile /etc/letsencrypt/live/www.kirbymicrowave.co.uk-0001/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/www.kirbymicrowave.co.uk-0001/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. ServerName kirbymicrowave.co.uk ServerAdmin drkirkby@kirkbymicrowave.co.uk DocumentRoot /var/www/html/kirkbymicrowave.co.uk SetOutputFilter DEFLATE SetEnvIfNoCase Request_URI "\.(?:gif|jpe?g|png)$" no-gzip # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error-KIRBYMICROWAVE.co.uk-SSL.log CustomLog ${APACHE_LOG_DIR}/access-KIRBYMICROWAVE.co.uk-SSL.log combined SSLEngine on SSLCertificateKeyFile /etc/letsencrypt/live/kirbymicrowave.co.uk/privkey.pem SSLCertificateFile /etc/letsencrypt/live/kirbymicrowave.co.uk/cert.pem SSLCertificateChainFile /etc/letsencrypt/live/kirbymicrowave.co.uk/fullchain.pem Redirect "/" "https://www.kirkbymicrowave.co.uk/" ServerName www.kirbymicrowave.co.uk ServerAdmin drkirkby@kirkbymicrowave.co.uk ErrorLog ${APACHE_LOG_DIR}/error-www.KIRBYMICROWAVE.co.uk-80.log CustomLog ${APACHE_LOG_DIR}/access-www.KIRBYMICROWAVE.co.uk-80.log combined DocumentRoot /var/www/html/kirkbymicrowave.co.uk Redirect "/" "http://www.kirkbymicrowave.co.uk/" RewriteEngine on RewriteCond %{SERVER_NAME} =www.kirbymicrowave.co.uk RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] ServerName kirbymicrowave.co.uk ServerAdmin drkirkby@kirkbymicrowave.co.uk DocumentRoot /var/www/html/kirkbymicrowave.co.uk ErrorLog ${APACHE_LOG_DIR}/error-KIRBYMICROWAVE.co,uk-80.log CustomLog ${APACHE_LOG_DIR}/access-KIRBYMICROWAVE.co.uk-80.log combined Redirect "/" "http://www.kirbymicrowave.co.uk/"