@gilbert
To set up a virtual host in XAMPP, follow these steps:
1 2 3 4 5 6 7 8 9 |
<VirtualHost *:80> DocumentRoot "C:/xampp/htdocs/project_folder" ServerName yourdomain.local <Directory "C:/xampp/htdocs/project_folder"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted </Directory> </VirtualHost> |
Replace "project_folder" with the name of your project directory and "yourdomain.local" with the desired domain name for your virtual host.
Add the following entry to the hosts file:
1
|
127.0.0.1 yourdomain.local |
Replace "yourdomain.local" with the domain name specified in the virtual host configuration.
Your virtual host should now be set up and accessible through the domain name you specified in the configuration.