<VirtualHost *:443>
ServerName xxx.com
ServerAlias www.xxx.com
DocumentRoot /var/www/xxx.com
SSLEngine on
SSLCertificateFile /etc/ssl/certs/xxx.crt
SSLCertificateKeyFile /etc/ssl/private/xxx.key
<Directory /var/www/ktechglobe.com>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:80>
ServerName xxx.com
ServerAlias www.xxx.com
#ServerAdmin webmaster@localhost
DocumentRoot /var/www/xxx.com
#Redirect permanent / https://www.xxx.com/
<Directory /var/www/ktechglobe.com>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
No comments:
Post a Comment