Created
December 7, 2013 14:34
-
-
Save dejanmarkovic/7842933 to your computer and use it in GitHub Desktop.
Adding vietual host in apache on Xampp
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
Go to: | |
C:\xampp\apache\conf\extra\ | |
Edit: | |
httpd-vhosts.conf | |
First you need to add xamp/localhost: | |
<VirtualHost *:80> | |
DocumentRoot "C:/xampp2/htdocs" | |
ServerName localhost | |
</VirtualHost> | |
<VirtualHost *:80> | |
##ServerAdmin [email protected] | |
DocumentRoot "C:\xampp2\htdocs\mysite.local\trunk" | |
ServerName mysite.local | |
ServerAlias *.mysite.local | |
ErrorLog "logs/local.mysite.local-error.log" | |
CustomLog "logs/local.mysite.local-access.log" common | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment