File: //etc/apache2/sites-available/estimate.essellent.com.conf
<VirtualHost *:80>
ServerName estimate.essellent.com
ServerAlias www.estimate.essellent.com
DocumentRoot /var/www/html/essellent/estimate/
<Directory "/var/www/html/esselent/estimate/">
DirectoryIndex index.php index.html
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# RewriteEngine On
# RewriteCond %{HTTPS} !=on
# RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
ErrorLog ${APACHE_LOG_DIR}/estimate.essellent_error.log
CustomLog ${APACHE_LOG_DIR}/estimate.essellent_access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerName estimate.essellent.com
ServerAlias www.estimate.essellent
DocumentRoot /var/www/html/essellent/estimate/
<Directory "/var/www/html/essellent/estimate/">
DirectoryIndex index.php index.html
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/estimate.essellent_error.log
CustomLog ${APACHE_LOG_DIR}/estimate.essellent_access.log combined
</VirtualHost>