Xampp virtual hosts for your domain or subdomain with SSL on Apache2 and Laravel.
Open file as administrator C:\Windows\System32\drivers\etc\hosts and append hosts
# Local domains and localhost
127.0.0.10 db.xx www.db.xx
127.0.0.11 example.org www.example.org
# Domain dirs
D:/www/localhost
D:/www/db.xx/public
D:/www/example.org/public
# Apache index.php file with
# <?php echo "works ...";
D:/www/localhost/index.php
D:/www/db.xx/public/index.php
D:/www/example.org/public/index.php
Include config files directory add in xampp/apache/conf/extra/httpd-vhosts.conf
Include "conf/extra/vhosts/*.conf"
Add in xampp/apache/conf/extra/vhosts/example.org.conf
<VirtualHost 127.0.0.11:80>
DocumentRoot "D:/www/example.org/public"
DirectoryIndex index.php
ServerName example.org
ServerAlias www.example.org
ErrorLog "D:/www/example.org/storage/logs/example.org.error.log"
CustomLog "D:/www/example.org/storage/logs/example.org.access.log" common
# Redirect to https
#RewriteEngine On
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{SERVER_NAME}$1 [R,L]
<Directory "D:/www/example.org/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost 127.0.0.11:443>
DocumentRoot "D:/www/example.org/public"
ServerName example.org
ServerAlias www.example.org
SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
<Directory "D:/www/example.org/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
Require all granted
</Directory>
</VirtualHost>
Restart Xampp Apache server from xampp panel or restart Windows.
Accept invalid SSL for domain in (advanced button).
Change example.org to a domain with dns mx records (for email testing in Laravel: app.xxx).