Created
September 1, 2018 05:50
-
-
Save aayushdrolia/d00a7ae6f2d14eeed1e8870a7b1e2e1b to your computer and use it in GitHub Desktop.
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
# Step 1: You need to navigate to C:/xampp/apache/conf/extra or wherever your xampp files are located. | |
# Step 2: Edit httpd-vhosts.conf. | |
1. Remove ##<VirtualHost *:80> | |
2. Add <VirtualHost *:80> | |
DocumentRoot "c:/xampp/htdocs/project" | |
ServerName project.localhost | |
<Directory "c:/xampp/htdocs/project"></Directory> | |
</VirtualHost> | |
# Step 3: Move to C:\Windows\System32\drivers\etc\hosts file. | |
1. Add 127.0.0.1 project.localhost at the bottom and hit save. | |
2. Restart apache and type http://project.localhost and you will be good to go. | |
# Note: If you do not have sufficient permission to edit C:\Windows\System32\drivers\etc\hosts file | |
then, | |
1. Search for notepad. | |
2. Right click on notepad and select option 'run as administrator'. | |
3. Now open the file via notepad and you will be able to perform the edits. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment