File: //etc/apache2/sites-available/prestitravel.com.conf
# Virtual Hosts
<VirtualHost *:80>
ServerAdmin support@novotecs.com
#ServerName dev-prestitravel.novotecs.com
ServerAlias prestitravel.com
#DocumentRoot
DocumentRoot /var/www/prestitravel.com
<Directory "/var/www/prestitravel.com">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/prestitravel.com-error.log
CustomLog ${APACHE_LOG_DIR}/prestitravel.com-access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =prestitravel.com [OR]
RewriteCond %{SERVER_NAME} =www.prestitravel.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerAdmin support@novotecs.com
ServerName prestitravel.com
ServerAlias www.prestitravel.com
#DocumentRoot
DocumentRoot /var/www/prestitravel.com
<Directory "/var/www/prestitravel.com">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/prestitravel.com-error.log
CustomLog ${APACHE_LOG_DIR}/prestitravel.com-access.log combined
SSLCertificateFile /etc/letsencrypt/live/prestitravel.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/prestitravel.com/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>