ServerName wiki.hwydm.com
ServerAlias hwydm.com
DocumentRoot /var/www/wikidemo
AllowOverride All
Require all granted
Options -Indexes
ErrorLog /var/www/hwydm.com_error.log
CustomLog /var/www/hwydm.com_access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =hwydm.com [OR]
RewriteCond %{SERVER_NAME} =wiki.hwydm.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
ServerName wiki.hwydm.com
ServerAlias hwydm.com
DocumentRoot /var/www/wikidemo
AllowOverride All
Require all granted
Options -Indexes
ErrorLog /var/www/wiki-error.log
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/hwydm.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/hwydm.com/privkey.pem
ServerName db.hwydm.com
DocumentRoot /var/www/phpMyAdmin
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
ServerName db.hwydm.com
DocumentRoot "/var/www/phpMyAdmin"
ErrorLog "/var/www/phpMyAdmin-error.log"
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/hwydm.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/hwydm.com/privkey.pem