Last active
June 1, 2022 05:25
-
-
Save najathi/6a52a0f4cc1ee152db7ef1812b50c092 to your computer and use it in GitHub Desktop.
Create Virtual Host very quickly in Windows OS..
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Open run (Win + R) and enter this location => D:\xampp\apache\conf\extra | |
2. Open this file with Any Editor (VS Code recommeded) => httpd-vhosts.conf | |
3. Add this line and save the file | |
<VirtualHost *:80> | |
DocumentRoot "D:/xampp/htdocs/demo-app/demo-api/public" | |
ServerName demo-api.test | |
</VirtualHost> | |
4. Open run (Win + R) and enter this location => C:\Windows\System32\drivers\etc\hosts | |
5. Open with VS Code recommeded | |
6. Add this line | |
127.0.0.1 demo-api.test | |
7. Finally restart the xampp services |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment