<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName kamili-uat-supplierportal.truebitstech.com
    ServerAlias kamili-uat-supplierportal.truebitstech.com
    ServerAlias *.kamili-uat-supplierportal.truebitstech.com
    DocumentRoot /home/app/htdocs/kamili.uat.supplier.portal/public

    <Directory "/home/app/htdocs/kamili.uat.supplier.portal/public">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
    ServerAdmin webmaster@localhost
    ServerName kamili-uat-supplierportal.truebitstech.com
    ServerAlias kamili-uat-supplierportal.truebitstech.com
    ServerAlias *.kamili-uat-supplierportal.truebitstech.com
    DocumentRoot /home/app/htdocs/kamili.uat.supplier.portal/public

    <Directory "/home/app/htdocs/kamili.uat.supplier.portal/public">
		DirectoryIndex index.php
		AllowOverride All
        Require all granted
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    SSLEngine on
    SSLCertificateFile /etc/letsencrypt/live/kamili-uat-supplierportal.truebitstech.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/kamili-uat-supplierportal.truebitstech.com/privkey.pem
</VirtualHost>
