Last active
December 29, 2022 20:04
-
-
Save karthikax/ac9ed21055ee6cb8dddc to your computer and use it in GitHub Desktop.
Adding virtual hosts in wamp (For any Directories)
This file contains 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
//Add to hosts file in "C:\Windows\System32\drivers\etc\" | |
127.0.0.1 newsite | |
//Access your new directory via "http://newsite" |
This file contains 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
<VirtualHost newsite> | |
DocumentRoot "F:/path" | |
ServerName newsite | |
<Directory "F:/path"> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride None | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> | |
// apache 2.4 ▼ | |
<VirtualHost newsite> | |
DocumentRoot "F:/path" | |
ServerName newsite | |
<Directory "F:/path"> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Require local | |
</Directory> | |
</VirtualHost> |
This file contains 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
<Directory /> | |
Options Indexes FollowSymLinks Includes ExecCGI | |
AllowOverride none | |
// Delete deny line, if any | |
</Directory> | |
# | |
# | |
# Virtual hosts | |
Include 'D:/Softwares/wamp/bin/apache/apache2.4.9/conf/extra/httpd-vhosts.conf' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment