π―
If you are using XAMPP then open C:\xampp\apache\conf\httpd.conf in your favorite php editor.
OR
If you are using WAMP then open C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf in your favorite php editor. We need to shift "C:\xampp\htdocs" to "D:\projects" so that when we open "http://localhost", then instead of listing projects in "htdocs" folder it will list our projects from "D:\projects" .
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
# | |
# This is the main Apache HTTP server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure |