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

    <Directory "/home/app/htdocs/kamili.dev.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-dev-supplierportal.truebitstech.com
    ServerAlias kamili-dev-supplierportal.truebitstech.com
    ServerAlias *.kamili-dev-supplierportal.truebitstech.com
    DocumentRoot /home/app/htdocs/kamili.dev.supplier.portal/public

    <Directory "/home/app/htdocs/kamili.dev.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-dev-supplierportal.truebitstech.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/kamili-dev-supplierportal.truebitstech.com/privkey.pem
</VirtualHost>
