Skip to content

Instantly share code, notes, and snippets.

@mrmmg
Created December 5, 2020 11:21
Show Gist options
  • Save mrmmg/db766cdbc3a3813d32c10da6e5f84c3b to your computer and use it in GitHub Desktop.
Save mrmmg/db766cdbc3a3813d32c10da6e5f84c3b to your computer and use it in GitHub Desktop.
Create Virtual Host in Xampp
# In this gist we are create a new virtual host for a laravel project on xampp
<VirtualHost *:80>
DocumentRoot "path\to\your\laravel-folder\public"
ServerName yourdomain.local
ServerAlias www.yourdomain.local
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "path\to\your\laravel-folder\public"
ServerName yourdomain.local
ServerAlias www.yourdomain.local
SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment