<IfModule mod_ssl.c>
<VirtualHost *:443>
 ServerAdmin webmaster@maksoft.net
 ServerName bestamed.com
 ServerAlias *.bestamed.com
 
 DocumentRoot /hosting/maksoft/maksoft
 
 <Directory "/hosting/maksoft/maksoft">
    Options -Indexes FollowSymLinks MultiViews Includes
    AllowOverride All
    
    Order allow,deny
    Allow from all
 </Directory>
 RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.

#  ReWriteCond %{SERVER_PORT} !^443$
#  RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
#  RewriteCond %{SERVER_NAME} =www.bestamed.com
#  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,QSA,R=permanent]

SSLCertificateFile /etc/letsencrypt/live/bestamed.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/bestamed.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/bestamed.com/chain.pem
</VirtualHost>

<VirtualHost *:443>
 ServerAdmin webmaster@maksoft.net
 ServerName maksoft.bg
 ServerAlias www.maksoft.bg, ra.maksoft.bg
 
 DocumentRoot /hosting/maksoft/maksoft
 
 <Directory "/hosting/maksoft/maksoft">
    Options -Indexes FollowSymLinks MultiViews Includes
    AllowOverride All
    
    Order allow,deny
    Allow from all
 </Directory>
 RewriteEngine on
SSLCertificateFile /etc/letsencrypt/live/maksoft.bg/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/maksoft.bg/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/maksoft.bg/chain.pem
</VirtualHost>

</IfModule>
