# For localhost on XAMPP, MAMP, and others
# file: httpd-vhosts.conf
# restart apache after making changes

#-------------------------------------------------------    DOMAIN
<VirtualHost *:80>
    ServerName DOMAIN.dev
    ServerAlias www.DOMAIN.dev
    DocumentRoot "/path/to/document/root/DOMAIN/"
    <Directory "/path/to/document/root/DOMAIN/">
        AllowOverride All
        Order Allow,Deny
        Allow from all
        Require all granted
    </Directory>
</VirtualHost>
<VirtualHost *:443>
    ServerName DOMAIN.dev
    ServerAlias www.DOMAIN.dev
    DocumentRoot "/path/to/document/root/DOMAIN/"
    <Directory "/path/to/document/root/DOMAIN/">
        AllowOverride All
        Order Allow,Deny
        Allow from all
        Require all granted
    </Directory>
    SSLEngine on
    SSLCertificateFile "/path/to/ssl/crt/DOMAIN.crt"
    SSLCertificateKeyFile "/path/to/ssl/key/DOMAIN.key"
</VirtualHost>