Last active
November 19, 2017 14:25
-
-
Save bpocallaghan/0aa0bcdcb484cf3ece8ab2d682572141 to your computer and use it in GitHub Desktop.
Apache Virtual Host (Windows)
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
# location - C:\Windows\System32\drivers\etc | |
127.0.0.1 localhost | |
# add the following line (to allow to enter laravel-admin.dev in your browser) | |
127.0.0.1 laravel-admin.dev |
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
# location - C:\wamp64\bin\apache\apache[version]\conf\extra | |
# Virtual Hosts | |
# The default 'localhost' setup (your DocumentRoot path might be different) | |
<VirtualHost *:8080> | |
ServerName localhost | |
DocumentRoot c:/wamp64/www | |
<Directory "c:/wamp64/www/"> | |
Options +Indexes +Includes +FollowSymLinks +MultiViews | |
AllowOverride All | |
Require local | |
</Directory> | |
</VirtualHost> | |
# Create a virtual host for laravel-admin.dev (restart apache when you made any changes) | |
<VirtualHost *:8080> | |
DocumentRoot "C:/Workspace/GitHub/LaravelAdmin/public" | |
ServerName laravel-admin.dev | |
<Directory "C:/Workspace/GitHub/LaravelAdmin/public"> | |
AllowOverride All | |
Require all granted | |
</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
# location - C:\wamp64\bin\apache\apache[version]\conf | |
# Search for the below | |
# Make sure there is no # infront of the 'include conf/xxxx line' (to activate the virtual hosts) | |
# Virtual hosts | |
Include conf/extra/httpd-vhosts.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment